mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
Fix that playTimes parameter of playAnimation is no effect sometimes.
This commit is contained in:
@@ -463,8 +463,9 @@ dragonBones.ArmatureDisplay = cc.Class({
|
||||
*/
|
||||
playAnimation: function(animName, playTimes) {
|
||||
if (this._sgNode) {
|
||||
this.playTimes = (playTimes === undefined) ? -1 : playTimes;
|
||||
this.animationName = animName;
|
||||
return this._sgNode.animation().play(animName, playTimes);
|
||||
return this._sgNode.animation().play(animName, this.playTimes);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user