[Bf-blender-cvs] [28ef76d] master: BGE Cleanup: Removing flen variable where it is not used

Jorge Bernal noreply at git.blender.org
Sat May 30 18:33:05 CEST 2015


Commit: 28ef76d0f01788bd909fc5d854a494575d1c0017
Author: Jorge Bernal
Date:   Sat May 30 18:30:34 2015 +0200
Branches: master
https://developer.blender.org/rB28ef76d0f01788bd909fc5d854a494575d1c0017

BGE Cleanup: Removing flen variable where it is not used

===================================================================

M	source/gameengine/Physics/Bullet/CcdPhysicsController.cpp

===================================================================

diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
index edc5b91..8ea2b4f 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++) {




More information about the Bf-blender-cvs mailing list