diff options
author | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-05-30 19:30:34 +0300 |
---|---|---|
committer | Jorge Bernal <jbernalmartinez@gmail.com> | 2015-05-30 19:30:34 +0300 |
commit | 28ef76d0f01788bd909fc5d854a494575d1c0017 (patch) | |
tree | b3887e8835d3177c8db7b551d78bfc80a5b21c9c /source/gameengine/Physics | |
parent | 71dcaa77446b5005d8b4d8f2afa94acfc3e21beb (diff) |
BGE Cleanup: Removing flen variable where it is not used
Diffstat (limited to 'source/gameengine/Physics')
-rw-r--r-- | source/gameengine/Physics/Bullet/CcdPhysicsController.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp index edc5b91c4c0..8ea2b4f299d 100644 --- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp +++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp @@ -2203,8 +2203,6 @@ bool CcdShapeConstructionInfo::UpdateMesh(class KX_GameObject *gameobj, class RA MFace *mf; MVert *mv; - int flen; - if (CustomData_has_layer(&dm->faceData, CD_MTFACE)) { MTFace *tface = (MTFace *)dm->getTessFaceDataArray(dm, CD_MTFACE); MTFace *tf; @@ -2214,6 +2212,8 @@ bool CcdShapeConstructionInfo::UpdateMesh(class KX_GameObject *gameobj, class RA for (mf = mface, tf = tface, i = 0; i < numpolys; mf++, tf++, i++) { if (tf->mode & TF_DYNAMIC) { + int flen; + if (mf->v4) { tot_bt_tris += 2; flen = 4; @@ -2255,12 +2255,10 @@ bool CcdShapeConstructionInfo::UpdateMesh(class KX_GameObject *gameobj, class RA fv_pt = quad_verts; *poly_index_pt++ = origi; *poly_index_pt++ = origi; - flen = 4; } else { fv_pt = tri_verts; *poly_index_pt++ = origi; - flen = 3; } for (; *fv_pt > -1; fv_pt++) { |