Skip to content

Commit faacf26

Browse files
committed
Fix create node from edge
1 parent ddc5b12 commit faacf26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Utils/NodeProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public static IEnumerable<PortDescription> GetEdgeCreationNodeMenuEntry(PortView
335335

336336
bool IsPortCompatible(PortDescription description)
337337
{
338-
if (portView.direction == Direction.Input && description.isInput || portView.direction == Direction.Output && !description.isInput)
338+
if ((portView.direction == Direction.Input && description.isInput) || (portView.direction == Direction.Output && !description.isInput))
339339
return false;
340340

341341
if (!BaseGraph.TypesAreConnectable(description.portType, portView.portType))

0 commit comments

Comments
 (0)