[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53263] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: fix for using uninitialized flag in my last commit.

Campbell Barton ideasman42 at gmail.com
Sat Dec 22 10:37:42 CET 2012


Revision: 53263
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53263
Author:   campbellbarton
Date:     2012-12-22 09:37:37 +0000 (Sat, 22 Dec 2012)
Log Message:
-----------
fix for using uninitialized flag in my last commit. 

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-12-22 08:59:11 UTC (rev 53262)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-12-22 09:37:37 UTC (rev 53263)
@@ -2991,8 +2991,12 @@
 				dw = defvert_find_index(dv, grad_data->def_nr);
 				if (dw) {
 					vs->weight_orig = dw->weight;
-					vs->flag |= VGRAD_STORE_DW_EXIST;
+					vs->flag = VGRAD_STORE_DW_EXIST;
 				}
+				else {
+					vs->weight_orig = 0.0f;
+					vs->flag = VGRAD_STORE_NOP;
+				}
 			}
 			else {
 				/* no go */




More information about the Bf-blender-cvs mailing list