Boolean modifier: fixed crash when applying the modifier

This commit is contained in:
Sybren A. Stüvel 2018-06-01 17:23:46 +02:00
parent e44743736f
commit 4fccb8a023
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
if (!bmd->object)
return mesh;
mesh_other = BKE_modifier_get_evaluated_mesh_from_evaluated_object(bmd->object, &mesh_other_free);
Object *ob_eval = DEG_get_evaluated_object(ctx->depsgraph, bmd->object);
mesh_other = BKE_modifier_get_evaluated_mesh_from_evaluated_object(ob_eval, &mesh_other_free);
if (mesh_other) {
Object *object = ctx->object;
Object *other = bmd->object;