Browse Source

Merge pull request #1476 from LumaDigital/MB-AnimationController-Animation-Names

Fix the animation controller's animations names not showing
JoshEngebretson 8 years ago
parent
commit
6491d7a50d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Script/AtomicEditor/ui/frames/inspector/AttributeInfoEdit.ts

+ 2 - 2
Script/AtomicEditor/ui/frames/inspector/AttributeInfoEdit.ts

@@ -830,9 +830,9 @@ class ResourceRefAttributeEdit extends AttributeInfoEdit {
                 // for cached resources, use the asset name, otherwise use the resource path name
                 // for cached resources, use the asset name, otherwise use the resource path name
                 var resource: Atomic.Resource;
                 var resource: Atomic.Resource;
                 if (this.refListIndex != -1) {
                 if (this.refListIndex != -1) {
-                    resource = object.getAttribute(this.attrInfo.name).resources[this.refListIndex, this.arrayIndex];
+                    resource = object.getAttribute(this.attrInfo.name).resources[this.refListIndex];
                 } else {
                 } else {
-                    resource = <Atomic.Resource>object.getAttribute(this.attrInfo.name, this.arrayIndex);
+                    resource = <Atomic.Resource>object.getAttribute(this.attrInfo.name);
                 }
                 }
 
 
                 var text = "";
                 var text = "";