summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-03 17:35:50 +0100
committerGitHub <noreply@github.com>2018-12-03 17:35:50 +0100
commit6f9aa8727c8905fbc0c10ea8d214c7d31f01f467 (patch)
tree3323aa7211455d752fd185af9cef5033afc606e5 /editor/import
parentb0c66154a4359674f27e4a6c8f13acb1e6fd04a7 (diff)
parent675dc00d04823e21ba9ea5ea6358c3eb322eb9f8 (diff)
Merge pull request #23991 from glaforte/bugfix/19195
Generate the tangents without de-indexing and re-indexing the vertices.
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/editor_import_collada.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/import/editor_import_collada.cpp b/editor/import/editor_import_collada.cpp
index cdc35a98e2..8e69090da3 100644
--- a/editor/import/editor_import_collada.cpp
+++ b/editor/import/editor_import_collada.cpp
@@ -1191,6 +1191,7 @@ Error ColladaImport::_create_resources(Collada::Node *p_node, bool p_use_compres
if (collada.state.mesh_data_map.has(meshid)) {
Ref<ArrayMesh> mesh = Ref<ArrayMesh>(memnew(ArrayMesh));
const Collada::MeshData &meshdata = collada.state.mesh_data_map[meshid];
+ mesh->set_name(meshdata.name);
Error err = _create_mesh_surfaces(false, mesh, ng->material_map, meshdata, apply_xform, bone_remap, skin, NULL, Vector<Ref<ArrayMesh> >(), false);
ERR_FAIL_COND_V(err, err);