[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31196] branches/soc-2010-nicolasbishop/ source/blender/editors/sculpt_paint/paint_vertex.c: == Ptex ==

Nicholas Bishop nicholasbishop at gmail.com
Mon Aug 9 17:29:33 CEST 2010


Revision: 31196
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31196
Author:   nicholasbishop
Date:     2010-08-09 17:29:33 +0200 (Mon, 09 Aug 2010)

Log Message:
-----------
== Ptex ==

Accidentally left in a statement before declaration error

Modified Paths:
--------------
    branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_vertex.c

Modified: branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_vertex.c	2010-08-09 11:32:55 UTC (rev 31195)
+++ branches/soc-2010-nicolasbishop/source/blender/editors/sculpt_paint/paint_vertex.c	2010-08-09 15:29:33 UTC (rev 31196)
@@ -1843,21 +1843,23 @@
 					SWAP(int, rstep, cstep);
 				}
 
-				float *co[4] = {
-					GRIDELEM_CO_AT(grid, r*gridsize+c, gridkey),
-					GRIDELEM_CO_AT(grid, r*gridsize+(c+cstep), gridkey),
+				{
+					float *co[4] = {
+						GRIDELEM_CO_AT(grid, r*gridsize+c, gridkey),
+						GRIDELEM_CO_AT(grid, r*gridsize+(c+cstep), gridkey),
 
-					GRIDELEM_CO_AT(grid, (r+rstep)*gridsize+(c+cstep), gridkey),
-					GRIDELEM_CO_AT(grid, (r+rstep)*gridsize+c, gridkey),
-				};
+						GRIDELEM_CO_AT(grid, (r+rstep)*gridsize+(c+cstep), gridkey),
+						GRIDELEM_CO_AT(grid, (r+rstep)*gridsize+c, gridkey),
+					};
 
-				if(inverse)
-					SWAP(float*, co[1], co[3]);
+					if(inverse)
+						SWAP(float*, co[1], co[3]);
 					
-				vpaint_ptex_from_quad(brush, stroke, &test,
-						      pt, res, rowlen,
-						      data + layersize * (v * rowlen + u),
-						      co[0], co[1], co[2], co[3]);
+					vpaint_ptex_from_quad(brush, stroke, &test,
+							      pt, res, rowlen,
+							      data + layersize * (v * rowlen + u),
+							      co[0], co[1], co[2], co[3]);
+				}
 			}
 		}
 	}





More information about the Bf-blender-cvs mailing list