From ef4db04da848a9790e502300285ccd17d71b4646 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 28 May 2013 14:23:07 +0000 Subject: code cleanup: lots of calls to BKE_mesh_calc_normals_mapping were not using the mapping functionality. replace ED_mesh_calc_normals with BKE_mesh_calc_normals(). --- source/blender/collada/MeshImporter.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/blender/collada') diff --git a/source/blender/collada/MeshImporter.cpp b/source/blender/collada/MeshImporter.cpp index cb1b55d2ac0..b4b37f7d0bd 100644 --- a/source/blender/collada/MeshImporter.cpp +++ b/source/blender/collada/MeshImporter.cpp @@ -710,7 +710,7 @@ void MeshImporter::bmeshConversion() if ((*m).second) { Mesh *me = (*m).second; BKE_mesh_tessface_clear(me); - BKE_mesh_calc_normals_mapping(me->mvert, me->totvert, me->mloop, me->mpoly, me->totloop, me->totpoly, NULL, NULL, 0, NULL, NULL); + BKE_mesh_calc_normals(me); //BKE_mesh_validate(me, 1); } } @@ -1033,10 +1033,7 @@ Object *MeshImporter::create_mesh_object(COLLADAFW::Node *node, COLLADAFW::Insta Mesh *new_mesh = uid_mesh_map[*geom_uid]; BKE_mesh_assign_object(ob, new_mesh); - BKE_mesh_calc_normals_mapping(new_mesh->mvert, new_mesh->totvert, - new_mesh->mloop, new_mesh->mpoly, - new_mesh->totloop, new_mesh->totpoly, - NULL, NULL, 0, NULL, NULL); + BKE_mesh_calc_normals(new_mesh); if (old_mesh->id.us == 0) BKE_libblock_free(&G.main->mesh, old_mesh); -- cgit v1.2.3