File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Assets/com.alelievr.NodeGraphProcessor/Editor Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ void CloseWindowWhenSceneIsClosed(Scene closedScene)
142
142
143
143
public virtual void OnGraphDeleted ( )
144
144
{
145
- if ( graph != null )
145
+ if ( graph != null && graphView != null )
146
146
rootView . Remove ( graphView ) ;
147
147
148
148
graphView = null ;
Original file line number Diff line number Diff line change @@ -941,11 +941,13 @@ public override void SetPosition(Rect newPos)
941
941
{
942
942
if ( initializing || ! nodeTarget . isLocked )
943
943
{
944
- initializing = false ;
945
944
base . SetPosition ( newPos ) ;
946
945
947
- owner . RegisterCompleteObjectUndo ( "Moved graph node" ) ;
946
+ if ( ! initializing )
947
+ owner . RegisterCompleteObjectUndo ( "Moved graph node" ) ;
948
+
948
949
nodeTarget . position = newPos ;
950
+ initializing = false ;
949
951
}
950
952
}
951
953
You can’t perform that action at this time.
0 commit comments