mirror of https://github.com/axmolengine/axmol.git
Merge pull request #10231 from geron-cn/fixanimationlistclone
FIX BUG: animationinfos lost after actiontimeline clone
This commit is contained in:
commit
15bf919000
|
@ -181,7 +181,11 @@ ActionTimeline* ActionTimeline::clone() const
|
||||||
newAction->addTimeline(newTimeline);
|
newAction->addTimeline(newTimeline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for( auto info : _animationInfos)
|
||||||
|
{
|
||||||
|
newAction->addAnimationInfo(info.second);
|
||||||
|
}
|
||||||
return newAction;
|
return newAction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue