use const for readonly strings and set some functions to static
[blender.git] / source / gameengine / Converter / BL_DeformableGameObject.cpp
index 58294f2940ea69521e27fd053ae3d3f9a509c2df..9d514e996616653147626fc288373d5b182b403a 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * ***** BEGIN GPL LICENSE BLOCK *****
  *
  * This program is free software; you can redistribute it and/or
@@ -92,10 +90,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);
                        }