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:
@@ -754,7 +754,7 @@ static DerivedMesh *arrayModifier_doArray(
|
||||
}
|
||||
|
||||
|
||||
static DerivedMesh *applyModifier(ModifierData *md, const EvaluationContext *UNUSED(eval_ctx),
|
||||
static DerivedMesh *applyModifier(ModifierData *md, Depsgraph *UNUSED(depsgraph),
|
||||
Object *ob, DerivedMesh *dm,
|
||||
ModifierApplyFlag flag)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user