Browse Source

Add AnimatedModel to component inspector

Josh Engebretson 10 years ago
parent
commit
1d012209de
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Script/AtomicEditor/ui/inspector/ComponentInspector.ts

+ 3 - 3
Script/AtomicEditor/ui/inspector/ComponentInspector.ts

@@ -121,8 +121,8 @@ class ComponentInspector extends Atomic.UISection {
             this.addJSComponentUI(attrsVerticalLayout);
             this.addJSComponentUI(attrsVerticalLayout);
         }
         }
 
 
-        if (component.typeName == "StaticModel") {
-            this.addStaticModelUI(attrsVerticalLayout);
+        if (component.typeName == "StaticModel" || component.typeName == "AnimatedModel") {
+            this.addModelUI(attrsVerticalLayout, component.typeName);
         }
         }
 
 
         var deleteButton = new Atomic.UIButton();
         var deleteButton = new Atomic.UIButton();
@@ -197,7 +197,7 @@ class ComponentInspector extends Atomic.UISection {
 
 
     }
     }
 
 
-    addStaticModelUI(layout: Atomic.UILayout) {
+    addModelUI(layout: Atomic.UILayout, typeName:string) {
 
 
         var staticModel = <Atomic.StaticModel> this.component;
         var staticModel = <Atomic.StaticModel> this.component;
         var cacheModel = staticModel.model;
         var cacheModel = staticModel.model;