Fix for outliner notifiers for inserting keyframes on visibility/selectivity/renderab...
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 12 Feb 2012 18:57:05 +0000 (18:57 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 12 Feb 2012 18:57:05 +0000 (18:57 +0000)
flags and toggling renderability from shortcut.

source/blender/editors/space_outliner/outliner_edit.c
source/blender/editors/space_outliner/space_outliner.c

index 562cbf4..eb910b0 100644 (file)
@@ -500,7 +500,7 @@ static int outliner_toggle_renderability_exec(bContext *C, wmOperator *UNUSED(op
        
        outliner_do_object_operation(C, scene, soops, &soops->tree, object_toggle_renderability_cb);
        
-       ED_region_tag_redraw(ar);
+       WM_event_add_notifier(C, NC_SCENE|ND_OB_RENDER, scene);
        
        return OPERATOR_FINISHED;
 }
index a040c63..ebbe28e 100644 (file)
@@ -265,6 +265,7 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn)
                case NC_ANIMATION:
                        switch(wmn->data) {
                                case ND_NLA_ACTCHANGE:
+                               case ND_KEYFRAME:
                                        ED_region_tag_redraw(ar);
                                        break;
                                case ND_ANIMCHAN: