Correct bug in subdivide_mesh_vt

This commit is contained in:
Luc Girod 2014-05-05 08:37:35 +02:00
parent 83d615565b
commit 5359a3e861

View File

@ -414,7 +414,7 @@ sweet_geometry_subdivide_mesh_vt (unsigned int nb_iterations, float scale,
(*mesh_tcoord)[j+1] = t.uv[i].y; (*mesh_tcoord)[j+1] = t.uv[i].y;
} }
free_all (&map, &v, &t, root, *mesh_vertices, *mesh_indices, *mesh_tcoord); free_all (&map, &v, &t, root, NULL, NULL, NULL);
(*count_indices) = nb_faces * 3; (*count_indices) = nb_faces * 3;
(*count_vertices) = v.nb_vertices; (*count_vertices) = v.nb_vertices;