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:
authorJacques Lucke <jacques@blender.org>2020-10-01 16:53:50 +0300
committerJacques Lucke <jacques@blender.org>2020-10-01 16:54:01 +0300
commitd7af1c7bd96b2800c4150ff515a713038176f370 (patch)
tree9120cd79018a0611cb638c969f1f1c63bee85c9f
parent5e6459ac1cdd271ef0b87be1ca331eaa203609ca (diff)
Fix: Mesh to Volume modifier crashes when object is in edit mode
Bug and fix has been found by dfelinto, thanks.
-rw-r--r--source/blender/modifiers/intern/MOD_mesh_to_volume.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_mesh_to_volume.cc b/source/blender/modifiers/intern/MOD_mesh_to_volume.cc
index b5d462ce842..ce8a456f66f 100644
--- a/source/blender/modifiers/intern/MOD_mesh_to_volume.cc
+++ b/source/blender/modifiers/intern/MOD_mesh_to_volume.cc
@@ -22,6 +22,7 @@
#include "BKE_lib_query.h"
#include "BKE_mesh_runtime.h"
+#include "BKE_mesh_wrapper.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_volume.h"
@@ -213,6 +214,7 @@ static Volume *modifyVolume(ModifierData *md, const ModifierEvalContext *ctx, Vo
if (mesh == NULL) {
return input_volume;
}
+ BKE_mesh_wrapper_ensure_mdata(mesh);
const float4x4 mesh_to_own_object_space_transform = float4x4(ctx->object->imat) *
float4x4(object_to_convert->obmat);