Added missing recalculate of normals after mesh import
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user