Update CCArmatureAnimation.cpp

it's for animation "broken body" problem.when ths animation completed , but the update of animation is still running,because of the single frame special case.we should set a condition that the animation has completed couldn't run again.
my cocos2dx version is 2.2.4.
because there was a problem of Armature , it's Corpse disintegration on that Armature which is single frame.
and when I debug it , I found that the frame has been update completely ,but the update function was still running.
it makes the armature flying anywhere which should stay still.
so I add this Control.And It goes well.‍


------------------ 原始邮件 ------------------
发件人: "minggo";<notifications@github.com>;
发送时间: 2014年8月29日(星期五) 下午4:11
收件人: "cocos2d/cocos2d-x"<cocos2d-x@noreply.github.com>; 
抄送: "当代美髯公。"<349653683@qq.com>; 
主题: Re: [cocos2d-x] Update CCArmatureAnimation.cpp (#7877)




In cocos/editor-support/cocostudio/CCArmatureAnimation.cpp:
 > @@ -337,11 +337,14 @@ void ArmatureAnimation::update(float dt) >  { >      ProcessBase::update(dt); >       > -    for (const auto &tween : _tweenList) > +    if (!_isComplete && !_isPause)  
@function-adlof 
 What's your opinion?
 
—
Reply to this email directly or view it on GitHub.