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:
parent
698f02d716
commit
7330041bde
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user