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 562cbf45e86add5a39eceabb12becbdb2d315668..eb910b0b0b5540b706d4f917f0ae850a2105e7a7 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 a040c63b2ab834f03a3115ae429ba00a43158c55..ebbe28e62fac7bfbf9159b61d4e11dea5fbb6dc9 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: