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:
authorCampbell Barton <ideasman42@gmail.com>2020-09-03 06:28:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-09-03 06:32:53 +0300
commitfc6b0c6f85fa19856946b209a993d0054bef697c (patch)
treee7b06631d0a9c0701befd6df7d64a60932c6af1b /source/blender/modifiers/intern/MOD_remesh.c
parent2820f7be7637e0a4f7edb60f235a876bdc6f0360 (diff)
Fix crash running remesh modifier without OpenVDB
Diffstat (limited to 'source/blender/modifiers/intern/MOD_remesh.c')
-rw-r--r--source/blender/modifiers/intern/MOD_remesh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_remesh.c b/source/blender/modifiers/intern/MOD_remesh.c
index 2c554a6b1a0..7a58b985429 100644
--- a/source/blender/modifiers/intern/MOD_remesh.c
+++ b/source/blender/modifiers/intern/MOD_remesh.c
@@ -165,6 +165,9 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *UNUSED(ctx)
return NULL;
}
result = BKE_mesh_remesh_voxel_to_mesh_nomain(mesh, rmd->voxel_size, rmd->adaptivity, 0.0f);
+ if (result == NULL) {
+ return NULL;
+ }
}
else {
/* Dualcon modes. */