Depsgraph: remove EvaluationContext, pass Depsgraph instead.
The depsgraph was always created within a fixed evaluation context. Passing both risks the depsgraph and evaluation context not matching, and it complicates the Python API where we'd have to expose both which is not so easy to understand. This also removes the global evaluation context in main, which assumed there to be a single active scene and view layer. Differential Revision: https://developer.blender.org/D3152
This commit is contained in:
@@ -1049,7 +1049,7 @@ static DerivedMesh *bvh_get_derived_mesh(
|
||||
const char *funcname, struct Scene *scene, Object *ob,
|
||||
bool use_deform, bool use_render, bool use_cage)
|
||||
{
|
||||
/* TODO: This doesn't work currently because of eval_ctx. */
|
||||
/* TODO: This doesn't work currently because of missing depsgraph. */
|
||||
#if 0
|
||||
/* we only need minimum mesh data for topology and vertex locations */
|
||||
CustomDataMask mask = CD_MASK_BAREMESH;
|
||||
|
Reference in New Issue
Block a user