Fix T82251: Outliner Material Drag&Drop missing tree update
Caused by rBb077de086e14. Not entirely sure why this was rebuilding the tree prior to above commit, but sending an ND_OB_SHADING notifier is appropriate (and also what the Outliners listener listens to). Maniphest Tasks: T82251 Differential Revision: https://developer.blender.org/D9396
This commit is contained in:
parent
998ae29549
commit
1019df81ff
Notes:
blender-bot
2023-02-14 06:00:50 +01:00
Referenced by issue #82251, Outliner Material Drag&Drop GUI issue
|
@ -641,6 +641,7 @@ static int material_drop_invoke(bContext *C, wmOperator *UNUSED(op), const wmEve
|
|||
|
||||
BKE_object_material_assign(bmain, ob, ma, ob->totcol + 1, BKE_MAT_ASSIGN_USERPREF);
|
||||
|
||||
WM_event_add_notifier(C, NC_OBJECT | ND_OB_SHADING, ob);
|
||||
WM_event_add_notifier(C, NC_SPACE | ND_SPACE_VIEW3D, CTX_wm_view3d(C));
|
||||
WM_event_add_notifier(C, NC_MATERIAL | ND_SHADING_LINKS, ma);
|
||||
|
||||
|
|
Loading…
Reference in New Issue