Follow up to previous commit, remove depth of field from UI in
authorAntony Riakiotakis <kalast@gmail.com>
Mon, 4 May 2015 12:38:02 +0000 (14:38 +0200)
committerAntony Riakiotakis <kalast@gmail.com>
Mon, 4 May 2015 12:38:02 +0000 (14:38 +0200)
wireframe/boundbox mode.

release/scripts/startup/bl_ui/space_view3d.py

index 07631f3733951875b26c8fb47631a18a622aba73..59fc3692e13ec5be171696ef0462c2a85b87382b 100644 (file)
@@ -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