Fix T47271: Vertex Group to Selected missing update

This commit is contained in:
Campbell Barton 2016-01-29 15:05:14 +11:00
parent a57d9f725f
commit f2a93faa7c
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #47271, "Copy Vertex Group to Selected" won't update viewport
1 changed files with 8 additions and 2 deletions

View File

@ -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;