diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-28 18:23:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-28 18:23:07 +0400 |
commit | ef4db04da848a9790e502300285ccd17d71b4646 (patch) | |
tree | 490b41f9665a7405d348dd0b817d57a3398a706e /source/blender/collada/MeshImporter.cpp | |
parent | c987aa7df5d4e47b0b141d47d605cc1af18a88c9 (diff) |
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().
Diffstat (limited to 'source/blender/collada/MeshImporter.cpp')
-rw-r--r-- | source/blender/collada/MeshImporter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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); |