diff --git a/Editor/Scripts/Editor/Windows/ImageProcessingGraphNodeVisual.cs b/Editor/Scripts/Editor/Windows/ImageProcessingGraphNodeVisual.cs index c3e4fcb..5d7c7a5 100644 --- a/Editor/Scripts/Editor/Windows/ImageProcessingGraphNodeVisual.cs +++ b/Editor/Scripts/Editor/Windows/ImageProcessingGraphNodeVisual.cs @@ -147,13 +147,12 @@ namespace ImageProcessingGraph.Editor.Unity_Image_Processing.Scripts.Editor.Wind // Exposes a variable on the port for editing when it's not connected public void ExposeVariableToPort(Port port, FieldInfo field) { - VisualElement NewElement; + VisualElement NewElement = new VisualElement(); var ExposedPropertyContainer = ((IPTPort)port).ExposedPropertyContainer; Type containerType = null; if (ExposedPropertyContainer == null) { - NewElement = new VisualElement(); NewElement.name = "property-field-container"; VisualElement the = CreatePropertyFieldForType(field.FieldType, field.GetValue(graphNode));