rcmaniac25 / GamePlay

Open-source, cross-platform 3D native C++ game framework making it easy to learn and write mobile and desktop games.
www.gameplay3d.org
1 stars 1 forks source link

Clone Animation #42

Open rcmaniac25 opened 9 years ago

rcmaniac25 commented 9 years ago

An addition of AnimationTarget::create(const char* id, const Animation* animation) that clones clips and other animation components, but binds to a different AnimationTarget and resets all playbacks to start/stops any running playbacks. This way clips and animation don't need to be recreated every time.

Internal Clips and Channels should work with Ref so they can be reused easily.