diff options
author | aap <aap@papnet.eu> | 2020-04-25 00:40:14 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-25 00:41:17 +0200 |
commit | ac19de45b88123b2284ecc3ab44cedcaa7ca496d (patch) | |
tree | 5e512242f7c7f41fcb9c685c2679c6b004bae8fd /src/rw/RwHelper.cpp | |
parent | implemented debugmenu (diff) | |
download | re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.tar re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.tar.gz re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.tar.bz2 re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.tar.lz re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.tar.xz re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.tar.zst re3-ac19de45b88123b2284ecc3ab44cedcaa7ca496d.zip |
Diffstat (limited to 'src/rw/RwHelper.cpp')
-rw-r--r-- | src/rw/RwHelper.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp index 02a07558..42e62105 100644 --- a/src/rw/RwHelper.cpp +++ b/src/rw/RwHelper.cpp @@ -312,6 +312,26 @@ HAnimAnimationCreateForHierarchy(RpHAnimHierarchy *hier) return anim; } +RpAtomic* +AtomicRemoveAnimFromSkinCB(RpAtomic *atomic, void *data) +{ + if(RpSkinGeometryGetSkin(RpAtomicGetGeometry(atomic))){ + RpHAnimHierarchy *hier = RpSkinAtomicGetHAnimHierarchy(atomic); +#ifdef LIBRW + if(hier && hier->interpolator->currentAnim){ + RpHAnimAnimationDestroy(hier->interpolator->currentAnim); + hier->interpolator->currentAnim = nil; + } +#else + if(hier && hier->pCurrentAnim){ + RpHAnimAnimationDestroy(hier->pCurrentAnim); + hier->pCurrentAnim = nil; + } +#endif + } + return atomic; +} + void RenderSkeleton(RpHAnimHierarchy *hier) { |