From f82f3f235e8cb714c81d3cc644fdac166cef4bbd Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Wed, 22 Sep 2010 06:58:51 +0000 Subject: [PATCH] Fix [#23944] Missing update of 3D view when toggling visibility of object in outliner with keyboard Reported and patched by Torsten Rupp (patch [#23895]) Also fixed typo in toggle visibility operator name --- source/blender/editors/space_outliner/outliner.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index c68a7d87193..50b9d68671c 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -1573,13 +1573,15 @@ static int outliner_toggle_visibility_exec(bContext *C, wmOperator *op) ED_region_tag_redraw(ar); + WM_event_add_notifier(C, NC_SCENE|ND_OB_SELECT, scene); + return OPERATOR_FINISHED; } void OUTLINER_OT_visibility_toggle(wmOperatorType *ot) { /* identifiers */ - ot->name= "Toggle Visability"; + ot->name= "Toggle Visibility"; ot->idname= "OUTLINER_OT_visibility_toggle"; ot->description= "Toggle the visibility of selected items";