Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-08-07 18:12:00 +0300
committerBastien Montagne <bastien@blender.org>2020-08-07 18:12:00 +0300
commit7309ee4df76bb33c598f5b982afd70069519038a (patch)
tree52c4e0e7563ae87042bef3a74ec93ba50fe6d76f /source/blender
parentc4b1ef45a09575aaba91d41c40123def42209d37 (diff)
parenta93be410c974d6c8c29ec35c7a905d14bb1bda58 (diff)
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/modifiers/intern/MOD_boolean.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.c b/source/blender/modifiers/intern/MOD_boolean.c
index 35aa7805db8..08fd7fb229d 100644
--- a/source/blender/modifiers/intern/MOD_boolean.c
+++ b/source/blender/modifiers/intern/MOD_boolean.c
@@ -178,12 +178,13 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
Object *other = bmd->object;
mesh_other = BKE_modifier_get_evaluated_mesh_from_evaluated_object(other, false);
- /* XXX This is utterly non-optimal, we may go from a bmesh to a mesh back to a bmesh!
- * But for 2.90 better not try to be smart here. */
- BKE_mesh_wrapper_ensure_mdata(mesh_other);
if (mesh_other) {
Object *object = ctx->object;
+ /* XXX This is utterly non-optimal, we may go from a bmesh to a mesh back to a bmesh!
+ * But for 2.90 better not try to be smart here. */
+ BKE_mesh_wrapper_ensure_mdata(mesh_other);
+
/* when one of objects is empty (has got no faces) we could speed up
* calculation a bit returning one of objects' derived meshes (or empty one)
* Returning mesh is depended on modifiers operation (sergey) */