Skip to content

Commit bd519ee

Browse files
committed
Merge pull request cocos2d#2874 from pandamicro/develop
Fix parser's setAnimationName issue while the property is undefined
2 parents 7542f30 + 3c599bf commit bd519ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/cocostudio/loader/parsers/action-2.x.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@
237237
frame.setSingleFrameIndex(singleFrameIndex);
238238

239239
frame.setEnterWithName(true);
240-
frame.setAnimationName(currentAnimationFrame);
240+
if (currentAnimationFrame)
241+
frame.setAnimationName(currentAnimationFrame);
241242

242243
return frame;
243244
}

0 commit comments

Comments
 (0)