forked from bartvdbraak/blender
Fix T44162: Outliner: modifier's icons toggle update issue
Use same notifier for button callback as the one used in matching outliner operator...
This commit is contained in:
parent
47c1112e6e
commit
70d9c01325
@ -290,8 +290,7 @@ static void restrictbutton_modifier_cb(bContext *C, void *UNUSED(poin), void *po
|
|||||||
Object *ob = (Object *)poin2;
|
Object *ob = (Object *)poin2;
|
||||||
|
|
||||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||||
|
WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, ob);
|
||||||
WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void restrictbutton_bone_visibility_cb(bContext *C, void *poin, void *poin2)
|
static void restrictbutton_bone_visibility_cb(bContext *C, void *poin, void *poin2)
|
||||||
|
Loading…
Reference in New Issue
Block a user