Merge pull request #50688 from AndreaCatania/AndreaCatania-patch-4

Set the surface name when GLTF file is imported.
This commit is contained in:
Rémi Verschelde 2021-07-21 15:53:52 +02:00 committed by GitHub
commit a0aeb56424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;