Fix #31180: limit selection to visible button in 3d header not showing up in
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 Apr 2012 14:52:30 +0000 (14:52 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 Apr 2012 14:52:30 +0000 (14:52 +0000)
material draw mode.

release/scripts/startup/bl_ui/space_view3d.py

index ff9484e6baf599ef801557643e1d2ef1bb8d25ac..b1b9742e16a446e37cf8e92fb8d4a87c6d609ed5 100644 (file)
@@ -69,7 +69,7 @@ class VIEW3D_HT_header(Header):
                 row.prop(toolsettings.particle_edit, "select_mode", text="", expand=True)
 
             # Occlude geometry
-            if view.viewport_shade in {'SOLID', 'SHADED', 'TEXTURED'} and (obj.mode == 'PARTICLE_EDIT' or (obj.mode == 'EDIT' and obj.type == 'MESH')):
+            if view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'} and (obj.mode == 'PARTICLE_EDIT' or (obj.mode == 'EDIT' and obj.type == 'MESH')):
                 row.prop(view, "use_occlude_geometry", text="")
 
             # Proportional editing