[Bf-blender-cvs] [e0ffb911a22] master: Fix T74299: PyGPUOffscreen Color Management

Jeroen Bakker noreply at git.blender.org
Mon Mar 2 09:28:44 CET 2020


Commit: e0ffb911a22bb03755687f45fc1a996870e059a8
Author: Jeroen Bakker
Date:   Mon Mar 2 09:24:06 2020 +0100
Branches: master
https://developer.blender.org/rBe0ffb911a22bb03755687f45fc1a996870e059a8

Fix T74299: PyGPUOffscreen Color Management

Color management currently happens after the python handlers. This means
that all common drawing operations needs to happen in SRS. The
PyGPUOffscreen requested that the color management was applied, that
resulted into applying colormanagement twice.

This patch makes sure that PyGPUOffscreen.draw_view3d renders in SRS.
There are more code paths that needs to be checked that the correct
space is being requested.

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

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 0efafe4e022..7e371d4f774 100644
--- a/source/blender/python/gpu/gpu_py_offscreen.c
+++ b/source/blender/python/gpu/gpu_py_offscreen.c
@@ -257,7 +257,7 @@ static PyObject *bpygpu_offscreen_draw_view3d(BPyGPUOffScreen *self,
                            true,
                            true,
                            "",
-                           true,
+                           false,
                            self->ofs,
                            NULL);



More information about the Bf-blender-cvs mailing list