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:
authorJeroen Bakker <j.bakker@atmind.nl>2018-07-05 15:38:14 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-07-05 17:46:06 +0300
commitf7ec70895c78900db8e7db88d3713ebb9aa62730 (patch)
tree40aed2e1ab618eb5fe829ce11d7033e2fc0e92a2 /release
parenta4328a4b70f80bbb1c2e8df3b95b793dc5f6fb06 (diff)
Overlay: enable/disable drawing of specific object types.
Added a option to the overlay popover that controls the visibility of non-renderable objects like lamps, cameras, speakers, armatures, curves empties and force fields. After discussion we went for a single option with more detailed check in the object_mode draw engine. Differential Revision: https://developer.blender.org/D3524
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 7b71d41e678..0c3219ae8e1 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3833,6 +3833,14 @@ class VIEW3D_PT_overlay(Panel):
sub.prop(overlay, "show_all_objects_origin")
sub = split.column()
+ row = sub.row(align=True)
+ row.prop(overlay, "show_empties", text="", toggle=True)
+ row.prop(overlay, "show_lamps", text="", toggle=True)
+ row.prop(overlay, "show_cameras", text="", toggle=True)
+ row.prop(overlay, "show_armatures", text="", toggle=True)
+ row.prop(overlay, "show_lightprobes", text="", toggle=True)
+ row.prop(overlay, "show_speakers", text="", toggle=True)
+
sub.prop(overlay, "show_relationship_lines")
sub.prop(overlay, "show_motion_paths")
#sub.prop(overlay, "show_onion_skins")
@@ -3847,6 +3855,7 @@ class VIEW3D_PT_overlay(Panel):
sub.active = overlay.show_wireframes
sub.prop(overlay, "wireframe_threshold", text="")
+
col = layout.column()
col.active = display_all
split = col.split(percentage=0.55)