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:
authorNathan Letwory <nathan@letworyinteractive.com>2010-09-28 01:22:20 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2010-09-28 01:22:20 +0400
commit4b33deeb02ffce4e1e2c0adb5a709f94eb214e8a (patch)
treeb9abc0a8c8fbc6b55383ec913cbb997c8e20ba6a /source/blender/editors/space_view3d/space_view3d.c
parentbbfbbe8e134f2836bb764fb9474167106668987a (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_view3d/space_view3d.c')
-rw-r--r--source/blender/editors/space_view3d/space_view3d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/space_view3d.c b/source/blender/editors/space_view3d/space_view3d.c
index c6b92fae1c0..a49ada8a4c9 100644
--- a/source/blender/editors/space_view3d/space_view3d.c
+++ b/source/blender/editors/space_view3d/space_view3d.c
@@ -726,6 +726,7 @@ static void view3d_header_area_listener(ARegion *ar, wmNotifier *wmn)
case ND_FRAME:
case ND_OB_ACTIVE:
case ND_OB_SELECT:
+ case ND_OB_VISIBLE:
case ND_MODE:
case ND_LAYER:
case ND_TOOLSETTINGS:
@@ -779,6 +780,7 @@ static void view3d_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
case ND_FRAME:
case ND_OB_ACTIVE:
case ND_OB_SELECT:
+ case ND_OB_VISIBLE:
case ND_MODE:
case ND_LAYER:
case ND_LAYER_CONTENT: