diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-17 19:04:05 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-17 19:04:05 +0300 |
commit | 264f37d6d82168861b3c48bac336d48a65673e34 (patch) | |
tree | e4ed347e46aad7bebd1ed9bee676d8844f346064 /source/blender/editors/sculpt_paint | |
parent | 031d37f4d95ec1f376273fb96d5572a1ec396bd1 (diff) |
Bugfix #25261
Adding weightgroup in weight-paint now sends notifier, so buttons
update
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 9ec4039a271..39768a010a8 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1331,8 +1331,10 @@ static int wpaint_stroke_test_start(bContext *C, wmOperator *op, wmEvent *UNUSED 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"); |