Skip to content

Commit 7eae53b

Browse files
committed
Fixed nodes loosing references after the graph asset was changed in text
1 parent 1666653 commit 7eae53b

File tree

1 file changed

+1
-1
lines changed
  • Assets/com.alelievr.NodeGraphProcessor/Runtime/Graph

1 file changed

+1
-1
lines changed

Assets/com.alelievr.NodeGraphProcessor/Runtime/Graph/BaseGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public class BaseGraph : ScriptableObject, ISerializationCallbackReceiver
162162
protected virtual void OnEnable()
163163
{
164164
if (isEnabled)
165-
return;
165+
OnDisable();
166166

167167
MigrateGraphIfNeeded();
168168
InitializeGraphElements();

0 commit comments

Comments
 (0)