diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-30 06:22:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-30 06:22:22 +0300 |
commit | 3d9988cde77d1c7817df2f66a174077000c9554c (patch) | |
tree | dfeb46f023293af40d82c69f9e0790c4fbc00d5d /release | |
parent | 11ea90933c3a7b0bcafce63bb025ce13c11d20b5 (diff) |
Fix #19473: Toggle Quad View options missing from UI.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_view3d.py | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index 943b07d6af6..225f7c5c5bb 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -1740,15 +1740,21 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel): col.prop(gs, "material_mode", text="") col.prop(view, "textured_solid") -# XXX - the Quad View options don't work yet -# layout.separator() -# -# layout.operator("screen.region_foursplit", text="Toggle Quad View") -# col = layout.column() -# col.prop(view, "lock_rotation") -# col.prop(view, "box_preview") -# col.prop(view, "box_clip") + layout.separator() + + region = view.region_quadview + + layout.operator("screen.region_quadview", text="Toggle Quad View") + if region: + col = layout.column() + col.prop(region, "lock_rotation") + row = col.row() + row.enabled = region.lock_rotation + row.prop(region, "box_preview") + row = col.row() + row.enabled = region.lock_rotation and region.box_preview + row.prop(region, "box_clip") class VIEW3D_PT_3dview_meshdisplay(bpy.types.Panel): bl_space_type = 'VIEW_3D' |