Search Issue Tracker

Active

Votes

0

Found in [Package]

0.1.0-exp.1

0.4.0-exp.1

Issue ID

GTFB-1396

Regression

No

[GTK] Changing the node's type does not refresh nodes in the graph

Package: Graph Toolkit

-

*Steps to reproduce:*
# Open the attached project GTKNodes
# Open the graph under Editor/New Graph.simpleg
# Open the script Editor/SequencerNode.cs
# Change the node's inherited type from Node to ContextNode
# Switch to the editor to view the New Graph.simpleg graph
# Observe the already existing SequencerNode and create a new one next to it to see the difference

*Note:* changing the node's inherited type also results in this error:

NullReferenceException: Object reference not set to an instance of an object
Unity.GraphToolkit.Editor.Implementation.GraphModelImp.OnEnable () (at ./Library/PackageCache/com.unity.graphtoolkit@516997d56518/GraphToolkitPublic/Implementation/GraphModelImp.cs:46)
Unity.GraphToolkit.Editor.GraphObject.OnEnable () (at ./Library/PackageCache/com.unity.graphtoolkit@516997d56518/GraphToolkitEditor/Model/GraphObject.cs:350)
Unity.GraphToolkit.Editor.Implementation.GraphObjectImp.OnEnable () (at ./Library/PackageCache/com.unity.graphtoolkit@516997d56518/GraphToolkitPublic/Implementation/GraphObjectImp.cs:52)

*Actual results:* The note stays the same despite having a different structure

*Expected results:* The node should be refreshed/clearly invalidated

*Reproducible with versions:* 0.1.0-exp.1 (6000.2.0a9), 0.4.0-exp.1 (6000.3.0b3)
*Tested on (OS):* Windows 11

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.