[Bf-blender-cvs] [aaef431] fracture_modifier: small enhancement for voronoi + bisect and solidify after FM use case

Martin Felke noreply at git.blender.org
Mon Jul 25 23:09:08 CEST 2016


Commit: aaef4310e91b7bc70694b0c5b091cc6292974a67
Author: Martin Felke
Date:   Mon Jul 25 23:08:46 2016 +0200
Branches: fracture_modifier
https://developer.blender.org/rBaaef4310e91b7bc70694b0c5b091cc6292974a67

small enhancement for voronoi + bisect and solidify after FM use case

if you use voronoi+bisect and solidify after FM, you can automerge now without having autohideable inner faces. This should have the same effect as autohide in regular use case has.

===================================================================

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 f2147ea..a42c92e 100644
--- a/source/blender/modifiers/intern/MOD_fracture.c
+++ b/source/blender/modifiers/intern/MOD_fracture.c
@@ -2952,6 +2952,11 @@ static DerivedMesh *do_autoHide(FractureModifierData *fmd, DerivedMesh *dm, Obje
 
 	BMO_op_callf(bm, (BMO_FLAG_DEFAULTS & ~BMO_FLAG_RESPECT_HIDE), "delete_keep_normals geom=%hf context=%i", BM_ELEM_SELECT, DEL_FACES);
 
+	if (del_faces == 0) {
+		/*fallback if you want to merge verts but use no filling method, whose faces could be hidden (and you dont have any selection then) */
+		BM_mesh_elem_hflag_enable_all(bm, BM_FACE | BM_EDGE | BM_VERT , BM_ELEM_SELECT, false);
+	}
+
 	if (fmd->automerge_dist > 0) {
 		//separate this, because it costs performance and might not work so well with thin objects, but its useful for smooth objects
 		BMO_op_callf(bm, (BMO_FLAG_DEFAULTS & ~BMO_FLAG_RESPECT_HIDE),




More information about the Bf-blender-cvs mailing list