diff options
author | aap <aap@papnet.eu> | 2020-12-21 13:29:09 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-12-21 13:29:09 +0100 |
commit | adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8 (patch) | |
tree | e52126842351a669255db161d196fa4c59c86eeb /src/animation | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.tar re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.tar.gz re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.tar.bz2 re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.tar.lz re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.tar.xz re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.tar.zst re3-adcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8.zip |
Diffstat (limited to 'src/animation')
-rw-r--r-- | src/animation/AnimBlendNode.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/animation/AnimBlendNode.cpp b/src/animation/AnimBlendNode.cpp index 62423004..d2a8dd41 100644 --- a/src/animation/AnimBlendNode.cpp +++ b/src/animation/AnimBlendNode.cpp @@ -308,9 +308,9 @@ CAnimBlendNode::GetEndTranslationCompressed(CVector &trans, float weight) if(blend > 0.0f){ KeyFrameTransCompressed *kf = (KeyFrameTransCompressed*)sequence->GetKeyFrameCompressed(sequence->numFrames-1); if(sequence->type & CAnimBlendSequence::KF_TRANS){ - CVector trans; - kf->GetTranslation(&trans); - trans = trans * blend; + CVector pos; + kf->GetTranslation(&pos); + trans = pos * blend; } } } |