From 3c4a16acc5b3bbb0aea9ae679bcdc0bf10cc5db1 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Thu, 6 Jun 2019 08:37:43 +0200 Subject: Python: GPU Offscreen Rendering When using python offscreen rendering the background was not drawn in EEVEE. Users would expect that when calling the `draw_view3d` method that it shows the same as in the 3d viewport. Seems to be a difference between the meaning of draw_background in b279 and b280. In B279 the world background would be drawn. In B280 the transparency is changed. Reviewed By: campbellbarton, fclem Maniphest Tasks: T61768 Differential Revision: https://developer.blender.org/D5022 --- source/blender/python/gpu/gpu_py_offscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/gpu') diff --git a/source/blender/python/gpu/gpu_py_offscreen.c b/source/blender/python/gpu/gpu_py_offscreen.c index 561aff41000..b5f4d26220a 100644 --- a/source/blender/python/gpu/gpu_py_offscreen.c +++ b/source/blender/python/gpu/gpu_py_offscreen.c @@ -253,7 +253,7 @@ static PyObject *bpygpu_offscreen_draw_view3d(BPyGPUOffScreen *self, GPU_offscreen_height(self->ofs), (float(*)[4])py_mat_view->matrix, (float(*)[4])py_mat_projection->matrix, - false, + true, true, "", true, -- cgit v1.2.3