IRC fix: removing material slot from Object didn't refresh 3D correct.
Missing ID tag update.
This commit is contained in:
@@ -296,6 +296,7 @@ static int material_slot_remove_exec(bContext *C, wmOperator *op)
|
||||
}
|
||||
|
||||
object_remove_material_slot(ob);
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
WM_event_add_notifier(C, NC_OBJECT|ND_DRAW, ob);
|
||||
WM_event_add_notifier(C, NC_OBJECT|ND_OB_SHADING, ob);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user