Browse Source

Show the true local ID's in the editor even though they are "ugly" (starting from 16777216), because these are the values that should be entered as a node ID attribute.

Lasse Öörni 11 years ago
parent
commit
ff391f125e

+ 1 - 1
Bin/Data/Scripts/Editor/EditorHierarchyWindow.as

@@ -452,7 +452,7 @@ String GetNodeTitle(Node@ node)
         ret = node.name;
 
     if (node.id >= FIRST_LOCAL_ID)
-        ret += " (Local " + String(node.id - FIRST_LOCAL_ID) + ")";
+        ret += " (Local " + String(node.id) + ")";
     else
         ret += " (" + String(node.id) + ")";
 

+ 1 - 1
Bin/Data/Scripts/Editor/EditorInspectorWindow.as

@@ -204,7 +204,7 @@ void UpdateAttributeInspector(bool fullUpdate = true)
         {
             String idStr;
             if (editNode.id >= FIRST_LOCAL_ID)
-                idStr = " (Local ID " + String(editNode.id - FIRST_LOCAL_ID) + ")";
+                idStr = " (Local ID " + String(editNode.id) + ")";
             else
                 idStr = " (ID " + String(editNode.id) + ")";
             nodeType = editNode.typeName;