Skip to content

Commit 4b620ec

Browse files
Fix inconsistent field drawer positions after unsupported fields
1 parent 8485100 commit 4b620ec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@ protected VisualElement AddControlField(FieldInfo field, string label = null, bo
728728
controlsContainer.Add(element);
729729
}
730730
}
731+
else
732+
{
733+
// Make sure we create an empty placeholder if FieldFactory can not provide a drawer
734+
if (showInputDrawer) AddEmptyField(field, false);
735+
}
731736

732737
var visibleCondition = field.GetCustomAttribute(typeof(VisibleIf)) as VisibleIf;
733738
if (visibleCondition != null)

0 commit comments

Comments
 (0)