1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

Fixed node position appearing as an editable field

This commit is contained in:
Thor Brigsted 2017-10-07 15:49:27 +02:00
parent 698f02d716
commit 7330041bde

View File

@ -131,7 +131,7 @@ public class NodeEditor {
fieldValue = EditorGUILayout.TextField(fieldPrettyName, fieldValue != null ? (string)fieldValue : "");
}
else if (fieldType == typeof(Rect)) {
if (fieldName == "position") return; //Ignore 'position'
if (fieldName == "rect") return; //Ignore 'rect'
fieldValue = EditorGUILayout.RectField(fieldPrettyName, (Rect)fieldValue);
}
else if (fieldType == typeof(float)) {