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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to