mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Fixed formatting
This commit is contained in:
parent
3d1da00652
commit
c321c276d1
@ -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;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ namespace XNodeEditor {
|
||||
}
|
||||
|
||||
Dictionary<Type, Attribute> typeTypes;
|
||||
if(!typeFields.TryGetValue(fieldName, out typeTypes)) {
|
||||
if (!typeFields.TryGetValue(fieldName, out typeTypes)) {
|
||||
typeTypes = new Dictionary<Type, Attribute>();
|
||||
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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user