Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_edit.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_edit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 562cbf45e86..80bd8291757 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -496,11 +496,10 @@ static int outliner_toggle_renderability_exec(bContext *C, wmOperator *UNUSED(op
{
SpaceOops *soops= CTX_wm_space_outliner(C);
Scene *scene= CTX_data_scene(C);
- ARegion *ar= CTX_wm_region(C);
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;
}