diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 11:26:37 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-04-25 11:26:37 +0200 |
commit | bb14d9689fbd28ea2b8e340472e3e593e4b84c1e (patch) | |
tree | 8f30747dab46c7ccf3ade06946aab1956664e798 /src/rw/RwHelper.cpp | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
download | re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.gz re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.bz2 re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.lz re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.xz re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.tar.zst re3-bb14d9689fbd28ea2b8e340472e3e593e4b84c1e.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) { |