From c174a598b1769838bab8accc854e26fbc978c7ba Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Wed, 21 Jul 2021 11:28:49 +0200 Subject: [PATCH] Set the surface name when GLTF file is imported. --- modules/gltf/gltf_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 71a9b3667f6..09bae884b9a 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -2796,7 +2796,7 @@ Error GLTFDocument::_parse_meshes(Ref state) { mat = mat3d; } - import_mesh->add_surface(primitive, array, morphs, Dictionary(), mat); + import_mesh->add_surface(primitive, array, morphs, Dictionary(), mat, mat->get_name()); } Vector blend_weights;