[Bf-blender-cvs] [fdd26faa49f] blender2.8: LookDev: Move lookdev balls when menu switches

Jeroen Bakker noreply at git.blender.org
Tue Jun 12 12:24:43 CEST 2018


Commit: fdd26faa49f056702b63a3b60d0da051c3f77c68
Author: Jeroen Bakker
Date:   Tue Jun 12 12:24:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBfdd26faa49f056702b63a3b60d0da051c3f77c68

LookDev: Move lookdev balls when menu switches

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

M	source/blender/draw/engines/eevee/eevee_lookdev.c

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

diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c b/source/blender/draw/engines/eevee/eevee_lookdev.c
index 5c626b42ddd..806fb65b8e8 100644
--- a/source/blender/draw/engines/eevee/eevee_lookdev.c
+++ b/source/blender/draw/engines/eevee/eevee_lookdev.c
@@ -149,12 +149,12 @@ void EEVEE_lookdev_draw_background(EEVEE_Data *vedata)
 
 		GPUFrameBuffer *fb = effects->final_fb;
 		GPU_framebuffer_bind(fb);
-		GPU_framebuffer_viewport_set(fb, rect.xmax - viewport_inset_x, 0, viewport_inset_x, viewport_inset_y);
+		GPU_framebuffer_viewport_set(fb, rect.xmax - viewport_inset_x, rect.ymin, viewport_inset_x, viewport_inset_y);
 		DRW_draw_pass(psl->lookdev_pass);
 
 		fb = dfbl->depth_only_fb;
 		GPU_framebuffer_bind(fb);
-		GPU_framebuffer_viewport_set(fb, rect.xmax - viewport_inset_x, 0, viewport_inset_x, viewport_inset_y);
+		GPU_framebuffer_viewport_set(fb, rect.xmax - viewport_inset_x, rect.ymin, viewport_inset_x, viewport_inset_y);
 		DRW_draw_pass(psl->lookdev_pass);
 
 		DRW_viewport_matrix_override_unset_all();



More information about the Bf-blender-cvs mailing list