Commit: 70d9c013257906d3e894907b92e693d1ccebd7fd
Author: Bastien Montagne
Date:   Sun Mar 29 13:14:59 2015 +0200
Branches: master
https://developer.blender.org/rB70d9c013257906d3e894907b92e693d1ccebd7fd

Fix T44162: Outliner: modifier's icons toggle update issue

Use same notifier for button callback as the one used in matching outliner 
operator...

===================================================================

M       source/blender/editors/space_outliner/outliner_draw.c

===================================================================

diff --git a/source/blender/editors/space_outliner/outliner_draw.c 
b/source/blender/editors/space_outliner/outliner_draw.c
index 5a11b9a..873b5f5 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -290,8 +290,7 @@ static void restrictbutton_modifier_cb(bContext *C, void 
*UNUSED(poin), void *po
        Object *ob = (Object *)poin2;
        
        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_MODIFIER, ob);
 }
 
 static void restrictbutton_bone_visibility_cb(bContext *C, void *poin, void 
*poin2)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to