Cleanup: getting rid of G.main.
Sometimes one needs a *lot* of changes for a single G.main... :/
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user