Fix T85395: Texture paint external edit wrong projection on reapply

Caused by rB5b34d11b55e0.

Above commit restored the view matrices in ED_view3d_draw_offscreen
_before_ they can be stored in the ImBuff (see ED_view3d_draw_offscreen
/ texture_paint_image_from_view_exec).

Now make restoring the view matrices optional and dont do this in case
of reprojection, so the used matrices can still be saved in the ImBuff
later.

Reviewed By: campbellbarton

Maniphest Tasks: T85395

Differential Revision: https://developer.blender.org/D10331
This commit is contained in:
2021-02-10 12:46:43 +01:00
parent d76890bfb0
commit 97cc130f47
6 changed files with 16 additions and 1 deletions

View File

@@ -268,6 +268,7 @@ static PyObject *py_offscreen_draw_view3d(BPyGPUOffScreen *self, PyObject *args,
true,
"",
false,
true,
self->ofs,
NULL);