[Bf-blender-cvs] [840cc05] fracture_modifier: crash fix, do not reset shards in dynamic fracture

Martin Felke noreply at git.blender.org
Sat Jun 13 10:56:05 CEST 2015


Commit: 840cc057a122b4460fb16503a0d97f1a6440a363
Author: Martin Felke
Date:   Sat Jun 13 10:55:45 2015 +0200
Branches: fracture_modifier
https://developer.blender.org/rB840cc057a122b4460fb16503a0d97f1a6440a363

crash fix, do not reset shards in dynamic fracture

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

M	source/blender/blenkernel/intern/fracture.c

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

diff --git a/source/blender/blenkernel/intern/fracture.c b/source/blender/blenkernel/intern/fracture.c
index 80188a6..70f8b4c 100644
--- a/source/blender/blenkernel/intern/fracture.c
+++ b/source/blender/blenkernel/intern/fracture.c
@@ -775,7 +775,7 @@ static void parse_cells(cell *cells, int expected_shards, ShardID parent_id, Fra
 		return;
 	}
 
-	if (reset)
+	if (mode == MOD_FRACTURE_PREFRACTURED && reset)
 	{
 		while (fm->shard_map.first)
 		{




More information about the Bf-blender-cvs mailing list