Fix T44594 disable depth of field in wireframe/bounding box modes. We

don't supply depth information in those modes so supporting the effects
does not really make sense
This commit is contained in:
Antonis Ryakiotakis 2015-05-04 14:34:44 +02:00
parent c19f3ea1b2
commit 73c090fe81
Notes: blender-bot 2023-10-13 01:54:23 +02:00
Referenced by issue #44594, Viewport Shading 'Depth Of Field' 'Wireframe' / 'Bounding Box' issue
1 changed files with 1 additions and 4 deletions

View File

@ -3729,7 +3729,7 @@ static void view3d_main_area_draw_objects(const bContext *C, Scene *scene, View3
#endif
/* framebuffer fx needed, we need to draw offscreen first */
if (v3d->fx_settings.fx_flag) {
if (v3d->fx_settings.fx_flag && v3d->drawtype >= OB_SOLID) {
GPUFXSettings fx_settings;
BKE_screen_gpu_fx_validate(&v3d->fx_settings);
fx_settings = v3d->fx_settings;
@ -3742,9 +3742,6 @@ static void view3d_main_area_draw_objects(const bContext *C, Scene *scene, View3
fx_settings.dof = NULL;
}
if (v3d->drawtype < OB_SOLID)
fx_settings.ssao = NULL;
do_compositing = GPU_fx_compositor_initialize_passes(rv3d->compositor, &ar->winrct, &ar->drawrct, &fx_settings);
}