Skip to content

Commit 1da37af

Browse files
committed
studio parser‘s issue
1 parent 1f22114 commit 1da37af

File tree

1 file changed

+15
-0
lines changed
  • frameworks/js-bindings/bindings/script/studio/parsers

1 file changed

+15
-0
lines changed

frameworks/js-bindings/bindings/script/studio/parsers/action-2.x.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@
5959
cache[file] = action;
6060
cache[file].retain();
6161
return action.clone();
62+
},
63+
64+
deferred: function(json, resourcePath, action, file){
65+
if(cc.sys.isNative){
66+
var animationlist = json["Content"]["Content"]["AnimationList"];
67+
var length = animationlist ? animationlist.length : 0;
68+
for (var i = 0; i < length; i++){
69+
var animationdata = animationlist[i];
70+
var info = { name: null, startIndex: null, endIndex: null };
71+
info.name = animationdata["Name"];
72+
info.startIndex = animationdata["StartIndex"];
73+
info.endIndex = animationdata["EndIndex"];
74+
action.addAnimationInfo(info);
75+
}
76+
}
6277
}
6378

6479
});

0 commit comments

Comments
 (0)