Added missing recalculate of normals after mesh import

This commit is contained in:
2013-05-28 13:32:29 +00:00
parent dc39ecf010
commit be773f22b1

View File

@@ -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];