diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-21 15:53:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-21 15:53:52 +0200 |
commit | a0aeb564244247996a5509be568c881d560fab77 (patch) | |
tree | 0fc867eac0ced44d99605b0b8191134b3b0f0c49 | |
parent | 579710f6dd1da10eeccb8826101c130f5874b5aa (diff) | |
parent | c174a598b1769838bab8accc854e26fbc978c7ba (diff) |
Merge pull request #50688 from AndreaCatania/AndreaCatania-patch-4
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; |