BGE Animations: Various changes to make code reviewers happy:
[blender-staging.git] / source / gameengine / Converter / BL_DeformableGameObject.cpp
index 58294f2940ea69521e27fd053ae3d3f9a509c2df..48392ee8dda789caa42ed02bb07eb0091c4d0cbe 100644 (file)
@@ -92,10 +92,11 @@ bool BL_DeformableGameObject::GetShape(vector<float> &shape)
        {
                // this check is normally superfluous: a shape deformer can only be created if the mesh
                // has relative keys
-               if (shape_deformer->GetKey() && shape_deformer->GetKey()->type==KEY_RELATIVE) 
+               Key* key = shape_deformer->GetKey();
+               if (key && key->type==KEY_RELATIVE) 
                {
                        KeyBlock *kb;
-                       for (kb = (KeyBlock*)shape_deformer->GetKey()->block.first; kb; kb = (KeyBlock*)kb->next)
+                       for (kb = (KeyBlock*)key->block.first; kb; kb = (KeyBlock*)kb->next)
                        {
                                shape.push_back(kb->curval);
                        }