[Bf-blender-cvs] [b0cb906] mesh-transfer-data: Fix another Stupid Typo Bug (tm)

Bastien Montagne noreply at git.blender.org
Sun Nov 9 18:45:23 CET 2014


Commit: b0cb906daea38d678c859dd462d138c16e373545
Author: Bastien Montagne
Date:   Sun Nov 9 18:44:47 2014 +0100
Branches: mesh-transfer-data
https://developer.blender.org/rBb0cb906daea38d678c859dd462d138c16e373545

Fix another Stupid Typo Bug (tm)

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

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

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

diff --git a/source/blender/blenkernel/intern/mesh_mapping.c b/source/blender/blenkernel/intern/mesh_mapping.c
index b2550b9..1b9ec88 100644
--- a/source/blender/blenkernel/intern/mesh_mapping.c
+++ b/source/blender/blenkernel/intern/mesh_mapping.c
@@ -199,7 +199,7 @@ static void bke_mesh_vert_poly_loop_map_create(MeshElemMap **r_map, int **r_mem,
 		for (j = 0; j < p->totloop; j++) {
 			unsigned int v = mloop[p->loopstart + j].v;
 
-			map[v].indices[map[v].count] = do_loops ? j + p->totloop : i;
+			map[v].indices[map[v].count] = do_loops ? p->loopstart + j : i;
 			map[v].count++;
 		}
 	}




More information about the Bf-blender-cvs mailing list