Merge branch 'blender-v4.1-release'
This commit is contained in:
@@ -449,6 +449,13 @@ static PyObject *pygpu_offscreen_draw_view3d(BPyGPUOffScreen *self, PyObject *ar
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (ED_view3d_draw_offscreen_check_nested()) {
|
||||
/* NOTE(@ideasman42): Nested draw calls could be supported.
|
||||
* Adding support for this looks to be possible but non-trivial. */
|
||||
PyErr_SetString(PyExc_RuntimeError, "Nested off-screen drawing not supported");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
BLI_assert(BKE_id_is_in_global_main(&scene->id));
|
||||
|
||||
depsgraph = BKE_scene_ensure_depsgraph(G_MAIN, scene, view_layer);
|
||||
|
||||
Reference in New Issue
Block a user