Commit: 841d916796762ab4abfebf4c6efe960e782f7384
Author: Martin Felke
Date: Tue Feb 3 19:07:18 2015 +0100
Branches: fracture_modifier
https://developer.blender.org/rB841d916796762ab4abfebf4c6efe960e782f7384
fix : autosmooth didnt work on all faces when boolean fractal with smooth inner
faces was used (added unnecessary sharp edges before)
===================================================================
M source/blender/blenkernel/intern/fracture_util.c
===================================================================
diff --git a/source/blender/blenkernel/intern/fracture_util.c
b/source/blender/blenkernel/intern/fracture_util.c
index 1ea2a60..9578016 100644
--- a/source/blender/blenkernel/intern/fracture_util.c
+++ b/source/blender/blenkernel/intern/fracture_util.c
@@ -345,13 +345,16 @@ Shard *BKE_fracture_shard_boolean(Object *obj,
DerivedMesh *dm_parent, Shard *ch
unwrap_shard_dm(left_dm);
/* set inner material on child shard */
- mpoly = left_dm->getPolyArray(left_dm);
- totpoly = left_dm->getNumPolys(left_dm);
- for (i = 0, mp = mpoly; i < totpoly; i++, mp++) {
- if (inner_material_index > 0) {
- mp->mat_nr = inner_material_index;
+ if (other == NULL)
+ {
+ mpoly = left_dm->getPolyArray(left_dm);
+ totpoly = left_dm->getNumPolys(left_dm);
+ for (i = 0, mp = mpoly; i < totpoly; i++, mp++) {
+ if (inner_material_index > 0) {
+ mp->mat_nr = inner_material_index;
+ }
+ mp->flag |= ME_FACE_SEL;
}
- mp->flag |= ME_FACE_SEL;
}
right_dm = dm_parent;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs