diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-09 01:51:40 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-09 01:51:40 +0200 |
commit | d686f587ccf69e533bf95b8fa4e18db82d710890 (patch) | |
tree | 48b4429d0e167a0ff75cce8b63f5024b396408bb /src/animation/AnimBlendAssocGroup.cpp | |
parent | Fix corona scaling (diff) | |
parent | Merge branch 'master' of github.com:GTAmodding/re3 (diff) | |
download | re3-d686f587ccf69e533bf95b8fa4e18db82d710890.tar re3-d686f587ccf69e533bf95b8fa4e18db82d710890.tar.gz re3-d686f587ccf69e533bf95b8fa4e18db82d710890.tar.bz2 re3-d686f587ccf69e533bf95b8fa4e18db82d710890.tar.lz re3-d686f587ccf69e533bf95b8fa4e18db82d710890.tar.xz re3-d686f587ccf69e533bf95b8fa4e18db82d710890.tar.zst re3-d686f587ccf69e533bf95b8fa4e18db82d710890.zip |
Diffstat (limited to '')
-rw-r--r-- | src/animation/AnimBlendAssocGroup.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/animation/AnimBlendAssocGroup.cpp b/src/animation/AnimBlendAssocGroup.cpp index bdcca2f8..5a6d10b4 100644 --- a/src/animation/AnimBlendAssocGroup.cpp +++ b/src/animation/AnimBlendAssocGroup.cpp @@ -3,6 +3,7 @@ #include "ctype.h" #include "General.h" +#include "RwHelper.h" #include "ModelInfo.h" #include "AnimManager.h" #include "RpAnimBlend.h" @@ -131,6 +132,10 @@ CAnimBlendAssocGroup::CreateAssociations(const char *name) assert(model); printf("Associated anim %s with model %s\n", anim->name, model->GetName()); RpClump *clump = (RpClump*)model->CreateInstance(); +#ifdef PED_SKIN + if(IsClumpSkinned(clump)) + RpClumpForAllAtomics(clump, AtomicRemoveAnimFromSkinCB, nil); +#endif RpAnimBlendClumpInit(clump); assocList[i].Init(clump, anim); RpClumpDestroy(clump); |