diff --git a/Scripts/Editor/NodeEditorGUILayout.cs b/Scripts/Editor/NodeEditorGUILayout.cs index 8089265..30f6426 100644 --- a/Scripts/Editor/NodeEditorGUILayout.cs +++ b/Scripts/Editor/NodeEditorGUILayout.cs @@ -45,7 +45,7 @@ namespace XNodeEditor { float spacePadding = 0; SpaceAttribute spaceAttribute; - if (NodeEditorUtilities.GetCachedAttrib(port.node.GetType(), property.name, out spaceAttribute)) spacePadding = spaceAttribute.height; + if (NodeEditorUtilities.GetCachedAttrib(port.node.GetType(), property.name, out spaceAttribute)) spacePadding = spaceAttribute.height; // If property is an input, display a regular property field and put a port handle on the left side if (port.direction == XNode.NodePort.IO.Input) { @@ -59,9 +59,9 @@ namespace XNodeEditor { } //Call GUILayout.Space if Space attribute is set and we are NOT drawing a PropertyField - bool useLayoutSpace = instancePortList - || showBacking == XNode.Node.ShowBackingValue.Never - || (showBacking == XNode.Node.ShowBackingValue.Unconnected && port.IsConnected); + bool useLayoutSpace = instancePortList || + showBacking == XNode.Node.ShowBackingValue.Never || + (showBacking == XNode.Node.ShowBackingValue.Unconnected && port.IsConnected); if (spacePadding > 0 && useLayoutSpace) { GUILayout.Space(spacePadding); spacePadding = 0; @@ -104,11 +104,10 @@ namespace XNodeEditor { } //Call GUILayout.Space if Space attribute is set and we are NOT drawing a PropertyField - bool useLayoutSpace = instancePortList - || showBacking == XNode.Node.ShowBackingValue.Never - || (showBacking == XNode.Node.ShowBackingValue.Unconnected && port.IsConnected); - if (spacePadding > 0 && useLayoutSpace) - { + bool useLayoutSpace = instancePortList || + showBacking == XNode.Node.ShowBackingValue.Never || + (showBacking == XNode.Node.ShowBackingValue.Unconnected && port.IsConnected); + if (spacePadding > 0 && useLayoutSpace) { GUILayout.Space(spacePadding); spacePadding = 0; } diff --git a/Scripts/Editor/NodeEditorUtilities.cs b/Scripts/Editor/NodeEditorUtilities.cs index 828207f..ebc7bd4 100644 --- a/Scripts/Editor/NodeEditorUtilities.cs +++ b/Scripts/Editor/NodeEditorUtilities.cs @@ -56,7 +56,7 @@ namespace XNodeEditor { } Dictionary typeTypes; - if(!typeFields.TryGetValue(fieldName, out typeTypes)) { + if (!typeFields.TryGetValue(fieldName, out typeTypes)) { typeTypes = new Dictionary(); typeFields.Add(fieldName, typeTypes); } @@ -67,7 +67,7 @@ namespace XNodeEditor { else typeTypes.Add(typeof(T), null); } - if(attr == null) { + if (attr == null) { attribOut = null; return false; }