diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-29 07:05:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-29 07:12:57 +0300 |
commit | f2a93faa7c2e5adfe333eab84791cf71b900d8f1 (patch) | |
tree | aad5187b660a811cc6922894a0fad36ed3b4df1a /source/blender | |
parent | a57d9f725f6e4c565163acb1e57f5417a665c9dd (diff) |
Fix T47271: Vertex Group to Selected missing update
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 265ef222d56..da1173f363a 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -3327,8 +3327,14 @@ static int vertex_group_copy_to_selected_exec(bContext *C, wmOperator *op) CTX_DATA_BEGIN (C, Object *, ob, selected_editable_objects) { if (obact != ob) { - if (ED_vgroup_array_copy(ob, obact)) changed_tot++; - else fail++; + if (ED_vgroup_array_copy(ob, obact)) { + DAG_id_tag_update(&ob->id, OB_RECALC_DATA); + WM_event_add_notifier(C, NC_GEOM | ND_VERTEX_GROUP, ob); + changed_tot++; + } + else { + fail++; + } } } CTX_DATA_END; |