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:
authorClément Foucault <foucault.clem@gmail.com>2019-01-25 23:03:50 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-01-25 23:56:10 +0300
commitc1814d593d1dcb3d683ef7be8e7e1b1d253bc614 (patch)
tree0a6ed728c6cac8e3e194b8b92c294b94f42c01e0 /release
parent3223644d1417223a9b0dc6fb811365b9882f8f26 (diff)
Workbench: Depth Of Field: Add toggle option in shading popover
Pretty straight forward. Just an option to turn the DoF per viewport. Default is off as in 2.79.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 5e42e0b655b..cca13d6d766 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4593,6 +4593,10 @@ class VIEW3D_PT_shading_options(Panel):
sub.prop(shading, "curvature_ridge_factor", text="Ridge")
sub.prop(shading, "curvature_valley_factor", text="Valley")
+ row = col.row()
+ row.active = not shading.show_xray
+ row.prop(shading, "use_dof", text="Depth Of Field")
+
if shading.type in {'WIREFRAME', 'SOLID'}:
row = layout.split()
row.prop(shading, "show_object_outline")