[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33745] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: Bugfix #25261

Ton Roosendaal ton at blender.org
Fri Dec 17 17:04:06 CET 2010


Revision: 33745
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33745
Author:   ton
Date:     2010-12-17 17:04:05 +0100 (Fri, 17 Dec 2010)

Log Message:
-----------
Bugfix #25261

Adding weightgroup in weight-paint now sends notifier, so buttons
update

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	2010-12-17 16:02:55 UTC (rev 33744)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2010-12-17 16:04:05 UTC (rev 33745)
@@ -1331,8 +1331,10 @@
 	if(me==NULL || me->totface==0) return OPERATOR_PASS_THROUGH;
 	
 	/* if nothing was added yet, we make dverts and a vertex deform group */
-	if (!me->dvert)
+	if (!me->dvert) {
 		ED_vgroup_data_create(&me->id);
+		WM_event_add_notifier(C, NC_GEOM|ND_DATA, me);
+	}
 	
 	/* make mode data storage */
 	wpd= MEM_callocN(sizeof(struct WPaintData), "WPaintData");





More information about the Bf-blender-cvs mailing list