[Bf-blender-cvs] [3c4a16acc5b] master: Python: GPU Offscreen Rendering

Jeroen Bakker noreply at git.blender.org
Thu Jun 6 08:38:38 CEST 2019


Commit: 3c4a16acc5b3bbb0aea9ae679bcdc0bf10cc5db1
Author: Jeroen Bakker
Date:   Thu Jun 6 08:37:43 2019 +0200
Branches: master
https://developer.blender.org/rB3c4a16acc5b3bbb0aea9ae679bcdc0bf10cc5db1

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

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

M	source/blender/python/gpu/gpu_py_offscreen.c

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

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,



More information about the Bf-blender-cvs mailing list