From 12458ebe8cbee2bcc305692f59970aa2c438c3f7 Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 22 May 2018 19:58:28 +0900 Subject: [PATCH] Fix updating mesh when reimporting (cherry picked from commit 9d5e1228eaa1fe0180b23969edda80d3c461f677) --- editor/import/editor_import_collada.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/import/editor_import_collada.cpp b/editor/import/editor_import_collada.cpp index 3312e8e9bfb..fac0d2abbc9 100644 --- a/editor/import/editor_import_collada.cpp +++ b/editor/import/editor_import_collada.cpp @@ -339,7 +339,7 @@ Error ColladaImport::_create_scene(Collada::Node *p_node, Spatial *p_parent) { NodeMap nm; nm.node = node; node_map[p_node->id] = nm; - node_name_map[p_node->name] = p_node->id; + node_name_map[node->get_name()] = p_node->id; Transform xf = p_node->default_transform; xf = collada.fix_transform(xf) * p_node->post_transform;