Pass EvaluationContext argument everywhere
Note that some little parts of code have been dissabled because eval_ctx was not available there. This should be resolved once DerivedMesh is replaced.
This commit is contained in:
@@ -192,6 +192,8 @@ PyDoc_STRVAR(pygpu_offscreen_draw_view3d_doc,
|
||||
);
|
||||
static PyObject *pygpu_offscreen_draw_view3d(BPy_GPUOffScreen *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
/* TODO: This doesn't work currently because of eval_ctx. */
|
||||
#if 0
|
||||
static const char *kwlist[] = {"scene", "render_layer", "view3d", "region", "projection_matrix", "modelview_matrix", NULL};
|
||||
|
||||
MatrixObject *py_mat_modelview, *py_mat_projection;
|
||||
@@ -244,6 +246,8 @@ static PyObject *pygpu_offscreen_draw_view3d(BPy_GPUOffScreen *self, PyObject *a
|
||||
MEM_freeN(rv3d_mats);
|
||||
|
||||
Py_RETURN_NONE;
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
PyDoc_STRVAR(pygpu_offscreen_free_doc,
|
||||
|
||||
Reference in New Issue
Block a user