diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2010-09-28 01:22:20 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2010-09-28 01:22:20 +0400 |
commit | 4b33deeb02ffce4e1e2c0adb5a709f94eb214e8a (patch) | |
tree | b9abc0a8c8fbc6b55383ec913cbb997c8e20ba6a /source/blender/editors/space_outliner/space_outliner.c | |
parent | bbfbbe8e134f2836bb764fb9474167106668987a (diff) |
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.
Diffstat (limited to 'source/blender/editors/space_outliner/space_outliner.c')
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c index 5e11d3502c1..d91c8caa14c 100644 --- a/source/blender/editors/space_outliner/space_outliner.c +++ b/source/blender/editors/space_outliner/space_outliner.c @@ -97,6 +97,8 @@ static void outliner_main_area_listener(ARegion *ar, wmNotifier *wmn) switch(wmn->data) { case ND_OB_ACTIVE: case ND_OB_SELECT: + case ND_OB_VISIBLE: + case ND_OB_RENDER: case ND_MODE: case ND_KEYINGSET: case ND_FRAME: |