[Bf-blender-cvs] [6b550a5] fracture_modifier: crash fix for direct text fracture (prefractured) -> bmesh use_toolflags set incorrectly
Martin Felke
noreply at git.blender.org
Wed Sep 28 22:52:55 CEST 2016
Commit: 6b550a563ef3a76245f11c5265fcca2431a00646
Author: Martin Felke
Date: Wed Sep 28 22:52:10 2016 +0200
Branches: fracture_modifier
https://developer.blender.org/rB6b550a563ef3a76245f11c5265fcca2431a00646
crash fix for direct text fracture (prefractured) -> bmesh use_toolflags set incorrectly
===================================================================
M source/blender/modifiers/intern/MOD_fracture.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_fracture.c b/source/blender/modifiers/intern/MOD_fracture.c
index 73fda78..8d71fa9 100644
--- a/source/blender/modifiers/intern/MOD_fracture.c
+++ b/source/blender/modifiers/intern/MOD_fracture.c
@@ -686,7 +686,8 @@ static DerivedMesh *get_clean_dm(Object *ob, DerivedMesh *dm)
DerivedMesh *result = NULL;
/* convert to BMesh, remove doubles, limited dissolve and convert back */
- BMesh *bm = DM_to_bmesh(dm, true);
+ BMesh *bm = BM_mesh_create(&bm_mesh_allocsize_default, &((struct BMeshCreateParams){.use_toolflags = true,}));
+ DM_to_bmesh_ex(dm, bm, true);
BMO_op_callf(bm, (BMO_FLAG_DEFAULTS & ~BMO_FLAG_RESPECT_HIDE),
"remove_doubles verts=%av dist=%f", BM_VERTS_OF_MESH, 0.0001, false);
More information about the Bf-blender-cvs
mailing list