Replies: 3 comments 4 replies
-
are you saving each object one by one or all at once ? @lance-lfx |
Beta Was this translation helpful? Give feedback.
1 reply
-
Only save the outermost shapes. Use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Are you using group.toObject() to save, and group.fromObject(data) to restore? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand that when objects on the canvas are grouped, they are immediately made children of the group and all objects are controlled by the group. The group is added to the canvas as an object.
E.g
Canvas._object = [object 1, object 2, object 3, group]
However, I tried to imitate the same structure when I save all 4 objects to my database (including the group). The parent-children relationship is broken once reloaded from my database. So, when I do load it, it loads a group that shows all 3 children objects and the actual 3 children free from the group. What should I do to maintain this parent-children relationship so I can load the groups properly without any duplication?
Beta Was this translation helpful? Give feedback.
All reactions