Skip to content

Commit e017b1d

Browse files
committed
Fix vertical ports with drawers
1 parent 118429a commit e017b1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,11 @@ protected virtual void SetNodeColor(Color color)
666666

667667
private void AddEmptyField(FieldInfo field, bool fromInspector)
668668
{
669-
if(field.GetCustomAttribute(typeof(InputAttribute)) == null || fromInspector) return;
669+
if (field.GetCustomAttribute(typeof(InputAttribute)) == null || fromInspector)
670+
return;
671+
672+
if (field.GetCustomAttribute<VerticalAttribute>() != null)
673+
return;
670674

671675
var box = new VisualElement {name = field.Name};
672676
box.AddToClassList("port-input-element");

0 commit comments

Comments
 (0)