diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-05-28 17:32:29 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-05-28 17:32:29 +0400 |
commit | be773f22b11ff73b744691c867708ef6cde78df5 (patch) | |
tree | 8c8479da322df6e50f2bf1e85ed4cfac1e31dd0d | |
parent | dc39ecf0105353d309dd692f74a80b0ae3778091 (diff) |
Added missing recalculate of normals after mesh import
-rw-r--r-- | source/blender/collada/MeshImporter.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/collada/MeshImporter.cpp b/source/blender/collada/MeshImporter.cpp index 7c0c0631e7f..cb1b55d2ac0 100644 --- a/source/blender/collada/MeshImporter.cpp +++ b/source/blender/collada/MeshImporter.cpp @@ -1033,7 +1033,11 @@ 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); + if (old_mesh->id.us == 0) BKE_libblock_free(&G.main->mesh, old_mesh); char layername[100]; |