mirror of https://github.com/axmolengine/axmol.git
Fixes bug that clone InnerActionFrame.
This commit is contained in:
parent
78b32332d3
commit
6237115fbf
|
@ -134,7 +134,7 @@ public:
|
||||||
|
|
||||||
virtual const cocos2d::Vector<Timeline*>& getTimelines() const { return _timelineList; }
|
virtual const cocos2d::Vector<Timeline*>& getTimelines() const { return _timelineList; }
|
||||||
|
|
||||||
/** add ActionIndexes*/
|
/** AnimationInfo*/
|
||||||
virtual void addAnimationInfo(const AnimationInfo& animationInfo);
|
virtual void addAnimationInfo(const AnimationInfo& animationInfo);
|
||||||
virtual void removeAnimationInfo(std::string animationName);
|
virtual void removeAnimationInfo(std::string animationName);
|
||||||
virtual bool IsAnimationInfoExists(const std::string& animationName);
|
virtual bool IsAnimationInfoExists(const std::string& animationName);
|
||||||
|
|
|
@ -549,8 +549,16 @@ Frame* InnerActionFrame::clone()
|
||||||
{
|
{
|
||||||
InnerActionFrame* frame = InnerActionFrame::create();
|
InnerActionFrame* frame = InnerActionFrame::create();
|
||||||
frame->setInnerActionType(_innerActionType);
|
frame->setInnerActionType(_innerActionType);
|
||||||
frame->setStartFrameIndex(_startFrameIndex);
|
if(_enterWithName)
|
||||||
frame->setEndFrameIndex(_endFrameIndex);
|
{
|
||||||
|
frame->setEnterWithName(true);
|
||||||
|
frame->setAnimationName(_animationName);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
frame->setStartFrameIndex(_startFrameIndex);
|
||||||
|
frame->setEndFrameIndex(_endFrameIndex);
|
||||||
|
}
|
||||||
frame->cloneProperty(this);
|
frame->cloneProperty(this);
|
||||||
|
|
||||||
return frame;
|
return frame;
|
||||||
|
|
Loading…
Reference in New Issue