[Bf-blender-cvs] [da2e66e] fracture_modifier: small typo fix for mousebased fracture, used wrong index variable name

Martin Felke noreply at git.blender.org
Thu Dec 1 23:51:30 CET 2016


Commit: da2e66e106ca4c4e7fefe6295f2e897380efc9fe
Author: Martin Felke
Date:   Thu Dec 1 23:50:58 2016 +0100
Branches: fracture_modifier
https://developer.blender.org/rBda2e66e106ca4c4e7fefe6295f2e897380efc9fe

small typo fix for mousebased fracture, used wrong index variable name

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

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

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

diff --git a/source/blender/blenkernel/intern/fracture.c b/source/blender/blenkernel/intern/fracture.c
index 7958c44..4ec04af 100644
--- a/source/blender/blenkernel/intern/fracture.c
+++ b/source/blender/blenkernel/intern/fracture.c
@@ -910,9 +910,9 @@ static void parse_cells(cell *cells, int expected_shards, ShardID parent_id, Fra
 
 				if (do_tree)
 				{
-					BLI_kdtree_insert(fm->last_shard_tree, i, t->raw_centroid);
+					BLI_kdtree_insert(fm->last_shard_tree, ti, t->raw_centroid);
 				}
-				fm->last_shards[i] = t;
+				fm->last_shards[ti] = t;
 				ti++;
 			}




More information about the Bf-blender-cvs mailing list