summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-21 13:29:09 +0100
committeraap <aap@papnet.eu>2020-12-21 13:29:09 +0100
commitadcfb30d7d7ca7c0cf8e07f5411a9e821f30dbe8 (patch)
treee52126842351a669255db161d196fa4c59c86eeb /src
parentf251803f558e5f4d434f78b70c9c24acf00a83ad (diff)
fix name shadowing
Diffstat (limited to 'src')
-rw-r--r--src/animation/AnimBlendNode.cpp6
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;
}
}
}