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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-16 20:49:31 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-03-16 20:49:31 +0300
commitd0c10cd0606a2832cdcec1fd9d3f888db06bd397 (patch)
tree475301a850e21588ba648352a16b8d6a8507d932 /release
parentecb35d463b7bad409142f02d37068459b98654bc (diff)
draw option to only display what is rendered, used for sequencer, opengl drawing by default. since we use preview renders a lot the empties & armatures can get in the way also.
(commit 27511 by Campbell from render25 branch)
Diffstat (limited to 'release')
-rw-r--r--release/scripts/ui/space_view3d.py20
1 files changed, 15 insertions, 5 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py
index 9e547763e97..3c0d6940da8 100644
--- a/release/scripts/ui/space_view3d.py
+++ b/release/scripts/ui/space_view3d.py
@@ -1899,9 +1899,11 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
ob = context.object
col = layout.column()
- col.prop(view, "display_x_axis", text="X Axis")
- col.prop(view, "display_y_axis", text="Y Axis")
- col.prop(view, "display_z_axis", text="Z Axis")
+ col.prop(view, "display_render_override")
+
+ col = layout.column()
+ display_all = not view.display_render_override
+ col.active = display_all
col.prop(view, "outline_selected")
col.prop(view, "all_object_origins")
col.prop(view, "relationship_lines")
@@ -1910,9 +1912,17 @@ class VIEW3D_PT_3dview_display(bpy.types.Panel):
col.prop(mesh, "all_edges")
col = layout.column()
- col.prop(view, "display_floor", text="Grid Floor")
+ col.active = display_all
+ split = col.split(percentage=0.55)
+ split.prop(view, "display_floor", text="Grid Floor")
+
+ row = split.row(align=True)
+ row.prop(view, "display_x_axis", text="X", toggle=True)
+ row.prop(view, "display_y_axis", text="Y", toggle=True)
+ row.prop(view, "display_z_axis", text="Z", toggle=True)
+
sub = col.column(align=True)
- sub.active = view.display_floor
+ sub.active = (display_all and view.display_floor)
sub.prop(view, "grid_lines", text="Lines")
sub.prop(view, "grid_spacing", text="Spacing")
sub.prop(view, "grid_subdivisions", text="Subdivisions")