Commit: 3014c07906c7c3d24272e636b9933f80c4399cfb
Author: Martin Felke
Date:   Tue Feb 17 22:13:21 2015 +0100
Branches: fracture_modifier
https://developer.blender.org/rB3014c07906c7c3d24272e636b9933f80c4399cfb

fix : forgot to set inner material with fractal boolean

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

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 a9551e4..f638ec4 100644
--- a/source/blender/blenkernel/intern/fracture_util.c
+++ b/source/blender/blenkernel/intern/fracture_util.c
@@ -325,12 +325,17 @@ Shard *BKE_fracture_shard_boolean(Object *obj, 
DerivedMesh *dm_parent, Shard *ch
                BMO_op_callf(bm, (BMO_FLAG_DEFAULTS & ~BMO_FLAG_RESPECT_HIDE),
                        "recalc_face_normals faces=af");
 
-               if (use_smooth_inner)
+               BM_ITER_MESH(f, &iter, bm, BM_FACES_OF_MESH)
                {
-                       BM_ITER_MESH(f, &iter, bm, BM_FACES_OF_MESH)
+                       if (use_smooth_inner)
                        {
                                BM_elem_flag_enable(f, BM_ELEM_SMOOTH);
                        }
+
+                       if (inner_material_index > 0)
+                       {
+                               f->mat_nr = inner_material_index;
+                       }
                }
 
                /*convert back*/

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to