fix root serialization
This commit is contained in:
parent
51764057f1
commit
8105f02dc7
1 changed files with 4 additions and 4 deletions
|
|
@ -24,10 +24,10 @@ func DeserializeGraph(bytes []byte, g *Graph) error {
|
|||
return err
|
||||
}
|
||||
|
||||
g.Root = &Object{
|
||||
Graph: g,
|
||||
Children: make(map[string]*Object),
|
||||
}
|
||||
var root Object
|
||||
convert(sg.Root, &root)
|
||||
g.Root = &root
|
||||
root.Graph = g
|
||||
|
||||
idToObj := make(map[string]*Object)
|
||||
idToObj[""] = g.Root
|
||||
|
|
|
|||
Loading…
Reference in a new issue