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-05-22 15:12:47 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2018-05-22 15:55:50 +0300
commitdfe088c5d9c819e7266e8e88fb31e92ac2ee8592 (patch)
tree893d823c1957624257c3ef128422c3fa132e9049 /release
parentff19b527e85ec5144efbd663bf9b4c338e179358 (diff)
Workbench: SeeThrough draw option
Option to see through all meshes (transparency) Works for OB_SOLID and OB_TEXTURED. Does not work for V3D_SHADING_SHADOW. TODO: Fresnel effect
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 6bf10231be5..b415afd9097 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3516,12 +3516,24 @@ class VIEW3D_PT_shading(Panel):
col.separator()
row = col.row()
+ row.prop(shading, "show_see_through")
+ sub = row.row()
+ sub.active = shading.show_see_through
+ sub.prop(shading, "see_through_transparency", text="")
+
+ row = col.row()
+ row.active = not shading.show_see_through
row.prop(shading, "show_shadows")
sub = row.row()
- sub.active = shading.show_shadows
+ sub.active = shading.show_shadows and not shading.show_see_through
sub.prop(shading, "shadow_intensity", text="")
- col.prop(shading, "show_object_outline")
+
+ row = col.row()
+ row.prop(shading, "show_object_outline")
+ sub = row.row()
+ sub.active = shading.show_object_outline
+ sub.prop(shading, "object_outline_color", text="")
class VIEW3D_PT_overlay(Panel):