Fix #142724: Mesh used by boolean modifier missing subdivision in edit mode

The code path for non-editmesh has ensure subdivision in it, the editmesh one
was missing it.

Pull Request: https://projects.blender.org/blender/blender/pulls/143135
This commit is contained in:
Brecht Van Lommel
2025-07-25 15:03:45 +02:00
committed by Brecht Van Lommel
parent 8cb7aafae2
commit ae5152866e

View File

@@ -989,6 +989,9 @@ Mesh *BKE_modifier_get_evaluated_mesh_from_evaluated_object(Object *ob_eval)
/* 'em' might not exist yet in some cases, just after loading a .blend file, see #57878. */
if (em != nullptr) {
mesh = const_cast<Mesh *>(BKE_object_get_editmesh_eval_final(ob_eval));
if (mesh != nullptr) {
mesh = BKE_mesh_wrapper_ensure_subdivision(mesh);
}
}
}
if (mesh == nullptr) {