File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Assets/com.alelievr.NodeGraphProcessor Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -87,5 +87,11 @@ public virtual void UpdateSelectedNodes(HashSet<BaseNodeView> views)
87
87
selectedNodes = views ;
88
88
nodeSelectionUpdated ? . Invoke ( ) ;
89
89
}
90
+
91
+ public virtual void NodeViewRemoved ( BaseNodeView view )
92
+ {
93
+ selectedNodes . Remove ( view ) ;
94
+ nodeSelectionUpdated ? . Invoke ( ) ;
95
+ }
90
96
}
91
97
}
Original file line number Diff line number Diff line change @@ -419,6 +419,13 @@ public void OnBeforeSerialize()
419
419
// so we can load objects references
420
420
public void Deserialize ( )
421
421
{
422
+ // Disable nodes correctly before removing them:
423
+ if ( nodes != null )
424
+ {
425
+ foreach ( var node in nodes )
426
+ node . DisableInternal ( ) ;
427
+ }
428
+
422
429
nodes . Clear ( ) ;
423
430
424
431
foreach ( var serializedNode in serializedNodes . ToList ( ) )
You can’t perform that action at this time.
0 commit comments