diff options
author | Andrea Catania <info@andreacatania.com> | 2021-07-21 11:28:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 11:28:49 +0200 |
commit | c174a598b1769838bab8accc854e26fbc978c7ba (patch) | |
tree | 15d415a304d559083381e92deb759d0bc97e524c | |
parent | deeec8894ad39d7254cf31f46321fb3cd869461f (diff) |
Set the surface name when GLTF file is imported.
-rw-r--r-- | modules/gltf/gltf_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 71a9b3667f..09bae884b9 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -2796,7 +2796,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> 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<float> blend_weights; |