[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55540] trunk/blender/source/blender/ modifiers/intern/MOD_mirror.c: code cleanup: quiet shadow warning.

Campbell Barton ideasman42 at gmail.com
Sat Mar 23 18:11:04 CET 2013


Revision: 55540
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55540
Author:   campbellbarton
Date:     2013-03-23 17:11:03 +0000 (Sat, 23 Mar 2013)
Log Message:
-----------
code cleanup: quiet shadow warning.

Modified Paths:
--------------
    trunk/blender/source/blender/modifiers/intern/MOD_mirror.c

Modified: trunk/blender/source/blender/modifiers/intern/MOD_mirror.c
===================================================================
--- trunk/blender/source/blender/modifiers/intern/MOD_mirror.c	2013-03-23 16:45:38 UTC (rev 55539)
+++ trunk/blender/source/blender/modifiers/intern/MOD_mirror.c	2013-03-23 17:11:03 UTC (rev 55540)
@@ -111,7 +111,7 @@
 	MLoop *ml;
 	MPoly *mp;
 	float mtx[4][4];
-	int i, j;
+	int i;
 	int a, totshape;
 	int *vtargetmap = NULL, *vtmap_a = NULL, *vtmap_b = NULL;
 
@@ -221,7 +221,7 @@
 	ml = CDDM_get_loops(result);
 	for (i = 0; i < maxPolys; i++, mp++) {
 		MLoop *ml2;
-		int e;
+		int j, e;
 
 		/* reverse the loop, but we keep the first vertex in the face the same,
 		 * to ensure that quads are split the same way as on the other side */
@@ -249,8 +249,8 @@
 	/* handle uvs,
 	 * let tessface recalc handle updating the MTFace data */
 	if (mmd->flag & (MOD_MIR_MIRROR_U | MOD_MIR_MIRROR_V)) {
-		const int do_mirr_u = (mmd->flag & MOD_MIR_MIRROR_U) != 0;
-		const int do_mirr_v = (mmd->flag & MOD_MIR_MIRROR_V) != 0;
+		const bool do_mirr_u = (mmd->flag & MOD_MIR_MIRROR_U) != 0;
+		const bool do_mirr_v = (mmd->flag & MOD_MIR_MIRROR_V) != 0;
 
 		const int totuv = CustomData_number_of_layers(&result->loopData, CD_MLOOPUV);
 




More information about the Bf-blender-cvs mailing list