Cleanup: getting rid of G.main.

Sometimes one needs a *lot* of changes for a single G.main... :/
This commit is contained in:
2018-06-08 12:16:37 +02:00
parent 55606dbdbc
commit 7b6af843c2
26 changed files with 197 additions and 151 deletions

View File

@@ -35,6 +35,8 @@
#include "WM_types.h"
#include "BKE_global.h"
#include "ED_screen.h"
#include "GPU_compositing.h"
@@ -192,7 +194,7 @@ static PyObject *pygpu_offscreen_draw_view3d(BPy_GPUOffScreen *self, PyObject *a
fx_settings = v3d->fx_settings; /* full copy */
ED_view3d_draw_offscreen_init(scene, v3d);
ED_view3d_draw_offscreen_init(G.main, scene, v3d);
rv3d_mats = ED_view3d_mats_rv3d_backup(ar->regiondata);