[Bf-blender-cvs] [4342957] fracture_modifier: fix, should need to fracture only once now in case you enable split shards to islands with constraints or clusters on

Martin Felke noreply at git.blender.org
Tue Mar 1 20:36:52 CET 2016


Commit: 43429578d3b853f91f6fe5f1882d6c91df67f6da
Author: Martin Felke
Date:   Tue Mar 1 20:36:36 2016 +0100
Branches: fracture_modifier
https://developer.blender.org/rB43429578d3b853f91f6fe5f1882d6c91df67f6da

fix, should need to fracture only once now in case you enable split shards to islands with constraints or clusters on

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

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 117a251..70509dc 100644
--- a/source/blender/modifiers/intern/MOD_fracture.c
+++ b/source/blender/modifiers/intern/MOD_fracture.c
@@ -3489,9 +3489,11 @@ static void do_refresh(FractureModifierData *fmd, Object *ob, DerivedMesh* dm, D
 			fill_vgroup(fmd, fmd->visible_mesh_cached, ivert, ob);
 		}
 		else {
-			if (fmd->visible_mesh == NULL) {
-				do_halving(fmd, ob, dm, orig_dm, false);
+			if (fmd->visible_mesh != NULL) {
+				BM_mesh_free(fmd->visible_mesh);
+				fmd->visible_mesh = NULL;
 			}
+			do_halving(fmd, ob, dm, orig_dm, false);
 			fmd->explo_shared = false;
 		}
 	}




More information about the Bf-blender-cvs mailing list