summaryrefslogtreecommitdiffstats
path: root/src/animation/AnimManager.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-25 11:26:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-25 11:26:37 +0200
commitbb14d9689fbd28ea2b8e340472e3e593e4b84c1e (patch)
tree8f30747dab46c7ccf3ade06946aab1956664e798 /src/animation/AnimManager.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-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/animation/AnimManager.cpp')
-rw-r--r--src/animation/AnimManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/animation/AnimManager.cpp b/src/animation/AnimManager.cpp
index 7c09b0dd..ebd2e1fb 100644
--- a/src/animation/AnimManager.cpp
+++ b/src/animation/AnimManager.cpp
@@ -1,6 +1,7 @@
#include "common.h"
#include "General.h"
+#include "RwHelper.h"
#include "ModelInfo.h"
#include "ModelIndices.h"
#include "FileMgr.h"
@@ -754,6 +755,11 @@ CAnimManager::LoadAnimFiles(void)
group->CreateAssociations(def->blockName, clump, def->animNames, def->numAnims);
for(j = 0; j < group->numAssociations; j++)
group->GetAnimation(j)->flags |= def->animDescs[j].flags;
+#ifdef PED_SKIN
+ // forgot on xbox/android
+ if(IsClumpSkinned(clump))
+ RpClumpForAllAtomics(clump, AtomicRemoveAnimFromSkinCB, nil);
+#endif
RpClumpDestroy(clump);
}
}