Skip to content

Commit 7c5d23a

Browse files
committed
Fix inheritance for nodes created from assets (drag operation)
1 parent ac8a6a3 commit 7c5d23a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/BaseGraphView.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,10 @@ void DragPerformedCallback(DragPerformEvent e)
643643
{
644644
var node = BaseNode.CreateFromType(kp.Value.nodeType, mousePos);
645645
if ((bool)kp.Value.initalizeNodeFromObject.Invoke(node, new []{obj}))
646+
{
646647
AddNode(node);
647-
else
648-
break;
648+
break;
649+
}
649650
}
650651
catch (Exception exception)
651652
{

0 commit comments

Comments
 (0)