Browse Source

Reverted back partial changes in the Editor.

Wei Tjong Yao 12 years ago
parent
commit
58aaf96eeb
2 changed files with 3 additions and 2 deletions
  1. 2 1
      Bin/Data/Scripts/Editor/EditorNodeWindow.as
  2. 1 1
      Bin/Data/UI/EditorNode.xml

+ 2 - 1
Bin/Data/Scripts/Editor/EditorNodeWindow.as

@@ -69,6 +69,7 @@ void CreateAttributeInspectorWindow()
     attributeInspectorWindow.SetPosition(ui.root.width - 20 - attributeInspectorWindow.width, 40);
     attributeInspectorWindow.opacity = uiMaxOpacity;
     attributeInspectorWindow.BringToFront();
+    UpdateAttributeInspector();
 
     SubscribeToEvent(attributeInspectorWindow.GetChild("CloseButton", true), "Released", "HideAttributeInspectorWindow");
     SubscribeToEvent(attributeInspectorWindow, "LayoutUpdated", "HandleWindowLayoutUpdated");
@@ -258,7 +259,7 @@ void PostEditAttribute(Array<Serializable@>@ serializables, uint index)
                 ApplyMaterialList(staticModel);
         }
     }
-    
+
     SetSceneModified();
 }
 

+ 1 - 1
Bin/Data/UI/EditorNode.xml

@@ -1,7 +1,7 @@
 <!-- This container can be used for both Node and UIElement -->
 <element>
     <element>
-        <attribute name="Name" value="Node Container" />
+        <attribute name="Name" value="NodeContainer" />
         <attribute name="Layout Mode" value="Vertical" />
         <attribute name="Layout Spacing" value="4" />
         <element type="BorderImage" style="EditorDivider" />