diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-08-29 10:19:55 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-08-29 10:19:55 +0400 |
commit | 296cc41b03b18fbe65357aa0cfdf43f43c881922 (patch) | |
tree | 0a39b8e7c93ca1b96b0c720205a146bcfe1c0bfb /source/gameengine/Converter/BL_DeformableGameObject.cpp | |
parent | ca79dee61f11227be0ed4cc5b1241fa748124da0 (diff) |
BGE Animations: Various changes to make code reviewers happy:
* Naming/style changes
* Taking advantage of switch statements
* Removing unneeded NULL checks
* etc
Diffstat (limited to 'source/gameengine/Converter/BL_DeformableGameObject.cpp')
-rw-r--r-- | source/gameengine/Converter/BL_DeformableGameObject.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gameengine/Converter/BL_DeformableGameObject.cpp b/source/gameengine/Converter/BL_DeformableGameObject.cpp index 58294f2940e..48392ee8dda 100644 --- a/source/gameengine/Converter/BL_DeformableGameObject.cpp +++ b/source/gameengine/Converter/BL_DeformableGameObject.cpp @@ -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); } |