[Bf-blender-cvs] [8fe651325c9] fracture_modifier: recalc normals when merging (distance>0) and not using fix normals
Martin Felke
noreply at git.blender.org
Sat Jun 10 21:58:34 CEST 2017
Commit: 8fe651325c9726b4b3f938780b35879a8a40449f
Author: Martin Felke
Date: Sat Jun 10 21:58:25 2017 +0200
Branches: fracture_modifier
https://developer.blender.org/rB8fe651325c9726b4b3f938780b35879a8a40449f
recalc normals when merging (distance>0) and not using fix normals
===================================================================
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 1119341ccac..c96b91d6441 100644
--- a/source/blender/modifiers/intern/MOD_fracture.c
+++ b/source/blender/modifiers/intern/MOD_fracture.c
@@ -3445,6 +3445,11 @@ static DerivedMesh *do_autoHide(FractureModifierData *fmd, DerivedMesh *dm, Obje
}
}
+ if (fmd->automerge_dist > 0 && !fmd->fix_normals)
+ {
+ BM_mesh_normals_update(bm);
+ }
+
result = CDDM_from_bmesh(bm, true);
BM_mesh_free(bm);
MEM_freeN(faces);
More information about the Bf-blender-cvs
mailing list