Godot Engine – Multi-platform 2D and 3D game engine
create placeholder names for gltfs with stripped materials
Ansraer190b48510b6e
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cppindex 602834022ac..7d1e448f532 100644--- a/modules/gltf/gltf_document.cpp+++ b/modules/gltf/gltf_document.cpp@@ -1493,6 +1493,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> p_state) {if (has_vertex_color) {mat3d->set_flag(StandardMaterial3D::FLAG_ALBEDO_FROM_VERTEX_COLOR, true);}+ mat3d->set_name(_gen_unique_name(p_state, vformat("%s_%s", mesh_name, itos(j + 1))));mat = mat3d;}ERR_FAIL_COND_V(mat.is_null(), ERR_FILE_CORRUPT);