File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Assets/com.alelievr.NodeGraphProcessor/Editor/Views Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ protected override void Initialize(BaseGraphView graphView)
103
103
RegisterCallback < DragUpdatedEvent > ( OnDragUpdatedEvent ) ;
104
104
RegisterCallback < DragPerformEvent > ( OnDragPerformEvent ) ;
105
105
RegisterCallback < MouseDownEvent > ( OnMouseDownEvent , TrickleDown . TrickleDown ) ;
106
+ RegisterCallback < DetachFromPanelEvent > ( OnViewClosed ) ;
106
107
107
108
UpdateParameterList ( ) ;
108
109
@@ -112,6 +113,9 @@ protected override void Initialize(BaseGraphView graphView)
112
113
} ) ;
113
114
}
114
115
116
+ void OnViewClosed ( DetachFromPanelEvent evt )
117
+ => Undo . undoRedoPerformed -= UpdateParameterList ;
118
+
115
119
void OnMouseDownEvent ( MouseDownEvent evt )
116
120
{
117
121
blackboardLayouts = content . Children ( ) . Select ( c => c . layout ) . ToList ( ) ;
You can’t perform that action at this time.
0 commit comments