mirror of
https://github.com/Siccity/xNode.git
synced 2026-02-04 22:34:54 +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 : "");
|
fieldValue = EditorGUILayout.TextField(fieldPrettyName, fieldValue != null ? (string)fieldValue : "");
|
||||||
}
|
}
|
||||||
else if (fieldType == typeof(Rect)) {
|
else if (fieldType == typeof(Rect)) {
|
||||||
if (fieldName == "position") return; //Ignore 'position'
|
if (fieldName == "rect") return; //Ignore 'rect'
|
||||||
fieldValue = EditorGUILayout.RectField(fieldPrettyName, (Rect)fieldValue);
|
fieldValue = EditorGUILayout.RectField(fieldPrettyName, (Rect)fieldValue);
|
||||||
}
|
}
|
||||||
else if (fieldType == typeof(float)) {
|
else if (fieldType == typeof(float)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user