[Bf-blender-cvs] [9ff91ac] master: Follow up to previous commit, remove depth of field from UI in wireframe/boundbox mode.

Antony Riakiotakis noreply at git.blender.org
Mon May 4 14:38:14 CEST 2015


Commit: 9ff91acadbe99b414165ec6604374641001c0a98
Author: Antony Riakiotakis
Date:   Mon May 4 14:38:02 2015 +0200
Branches: master
https://developer.blender.org/rB9ff91acadbe99b414165ec6604374641001c0a98

Follow up to previous commit, remove depth of field from UI in
wireframe/boundbox mode.

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 07631f3..59fc369 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3022,11 +3022,10 @@ class VIEW3D_PT_view3d_shading(Panel):
 
         fx_settings = view.fx_settings
 
-        sub = col.column()
-        sub.active = view.region_3d.view_perspective == 'CAMERA'
-        sub.prop(fx_settings, "use_dof")
-
         if view.viewport_shade not in {'BOUNDBOX', 'WIREFRAME'}:
+            sub = col.column()
+            sub.active = view.region_3d.view_perspective == 'CAMERA'
+            sub.prop(fx_settings, "use_dof")
             col.prop(fx_settings, "use_ssao", text="Ambient Occlusion")
             if fx_settings.use_ssao:
                 ssao_settings = fx_settings.ssao




More information about the Bf-blender-cvs mailing list