[Bf-blender-cvs] [73c090f] master: 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

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


Commit: 73c090fe81fcc6f0966681171377412d0b4d1da4
Author: Antony Riakiotakis
Date:   Mon May 4 14:34:44 2015 +0200
Branches: master
https://developer.blender.org/rB73c090fe81fcc6f0966681171377412d0b4d1da4

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

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

M	source/blender/editors/space_view3d/view3d_draw.c

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

diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index da628c3..57b417e 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -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);
 	}




More information about the Bf-blender-cvs mailing list