Fix [#23977] toggle back to object mode not working (outliner issue)
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 27 Sep 2010 21:22:20 +0000 (21:22 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 27 Sep 2010 21:22:20 +0000 (21:22 +0000)
commit4b33deeb02ffce4e1e2c0adb5a709f94eb214e8a
treeb9abc0a8c8fbc6b55383ec913cbb997c8e20ba6a
parentbbfbbe8e134f2836bb764fb9474167106668987a
Fix [#23977] toggle back to object mode not working (outliner issue)
Reported by Roland Kramer

There was already code to prevent visibility toggle through restrict column from working when in edit mode. Reshuffled
code somewhat so it works also for object operations in outliner. Also ensure operator poll for visibility and selectability toggle
checks object is not in edit mode. So this also works for selectability toggling, so no more toggling when in edit mode - it's confusing otherwise.

Added notifier and handling for it for renderability toggle in outliner. No edit mode restriction here.
source/blender/editors/include/ED_screen.h
source/blender/editors/object/object_select.c
source/blender/editors/screen/screen_ops.c
source/blender/editors/space_outliner/outliner.c
source/blender/editors/space_outliner/space_outliner.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/windowmanager/WM_types.h