diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-06-06 09:37:43 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-06-06 09:38:05 +0300 |
commit | 3c4a16acc5b3bbb0aea9ae679bcdc0bf10cc5db1 (patch) | |
tree | 9cecd08affe231d7f08976cc4560d6a14f8820fd | |
parent | d7e745206799f61de332fdbe711910f3f6c6c773 (diff) |
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
-rw-r--r-- | source/blender/python/gpu/gpu_py_offscreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |