Follow up to previous commit, remove depth of field from UI in

wireframe/boundbox mode.
This commit is contained in:
Antony Riakiotakis 2015-05-04 14:38:02 +02:00
parent 73c090fe81
commit 9ff91acadb

@ -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