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:
authorMatt Ebb <matt@mke3.net>2009-12-03 12:49:21 +0300
committerMatt Ebb <matt@mke3.net>2009-12-03 12:49:21 +0300
commitbd8e92904472b2cfaf49a71518be0502d517e682 (patch)
treee1bd77a837060bf19442e28556a9a05dbfea0153 /release/scripts
parent22290fbbbb0d111b6c01017cb5482d1336ca1616 (diff)
Fix for [#20226] 3DView header: hiding menu texts and layer button's issue.
Also: big purge of old 3d view header menus and old unused code
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/ui/space_view3d.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py
index ea44e43c851..2c6b2b5ad18 100644
--- a/release/scripts/ui/space_view3d.py
+++ b/release/scripts/ui/space_view3d.py
@@ -33,13 +33,14 @@ class VIEW3D_HT_header(bpy.types.Header):
obj = context.active_object
toolsettings = context.scene.tool_settings
- row = layout.row(align=True)
+ row = layout.row()
row.template_header()
-
+
+ sub = row.row(align=True)
+
# Menus
if context.area.show_menus:
- sub = row.row(align=True)
-
+
sub.menu("VIEW3D_MT_view")
# Select Menu
@@ -49,20 +50,20 @@ class VIEW3D_HT_header(bpy.types.Header):
if edit_object:
sub.menu("VIEW3D_MT_edit_%s" % edit_object.type.lower())
elif obj:
- if mode_string not in ['PAINT_WEIGHT', 'PAINT_TEXTURE']:
+ if mode_string not in ('PAINT_WEIGHT'):
sub.menu("VIEW3D_MT_%s" % mode_string.lower())
else:
sub.menu("VIEW3D_MT_object")
- layout.template_header_3D()
+ row.template_header_3D()
# Particle edit
if obj and obj.mode == 'PARTICLE_EDIT':
- layout.prop(toolsettings.particle_edit, "selection_mode", text="", expand=True)
+ row.prop(toolsettings.particle_edit, "selection_mode", text="", expand=True, toggle=True)
# Occlude geometry
if obj and view.viewport_shading in ('SOLID', 'SHADED', 'TEXTURED') and (obj.mode == 'PARTICLE_EDIT' or (obj.mode == 'EDIT' and obj.type == 'MESH')):
- layout.prop(view, "occlude_geometry", text="")
+ row.prop(view, "occlude_geometry", text="")
# Proportional editing
if obj and obj.mode in ('OBJECT', 'EDIT'):