We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when undo , it's will reload graph view, and it's will remove all elements
remove element will call GraphViewChangedCallback function
and when remove element, group view will check this node on group , and remove from base graph data
it's will lose all group view ,this kind of incorrect call can lead to many potential problems later
The text was updated successfully, but these errors were encountered:
I just changed the order of the clear group view ()
the order of calls should clear the group first
and i remove graphViewChanged before reload and add later
some callback chain messed up , i try to code refactoring , and the code and ideas are valuable
Sorry, something went wrong.
I also want to know how to solve it in the end?
When call undo, innerNodeGUIDs are removed from the group, I solved this problem like this
in the BaseGraphView.ReloadView method:
void ReloadView() { ... var innerNodeGUIDs = graph.groups.Select(graphGroup => graphGroup.innerNodeGUIDs.ToList()).ToList(); // Remove everything RemoveNodeViews(); for (var i = 0; i < innerNodeGUIDs.Count; i++) { var innerNodeGuid = innerNodeGUIDs[i]; graph.groups[i].innerNodeGUIDs = innerNodeGuid; } ... }
No branches or pull requests
when undo , it's will reload graph view, and it's will remove all elements
remove element will call GraphViewChangedCallback function
and when remove element, group view will check this node on group , and remove from base graph data
it's will lose all group view ,this kind of incorrect call can lead to many potential problems later
The text was updated successfully, but these errors were encountered: