diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-09-22 10:58:51 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-09-22 10:58:51 +0400 |
commit | f82f3f235e8cb714c81d3cc644fdac166cef4bbd (patch) | |
tree | 2d4d0f108efaf0d3a5f32fe7b36b28f6c82f272e /source/blender/editors/space_outliner | |
parent | 1632db7b71b4f15edf35187e46e0a53d3733aab6 (diff) |
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
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"; |