1
0
Fork 0
This commit is contained in:
Aaron Franke 2025-02-28 01:36:01 +01:00 committed by GitHub
commit 3d39af4644
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -3185,9 +3185,11 @@ Error GLTFDocument::_serialize_meshes(Ref<GLTFState> p_state) {
primitives.push_back(primitive);
}
Dictionary e;
e["targetNames"] = target_names;
gltf_mesh["extras"] = e;
if (!target_names.is_empty()) {
Dictionary e;
e["targetNames"] = target_names;
gltf_mesh["extras"] = e;
}
_attach_meta_to_extras(import_mesh, gltf_mesh);
weights.resize(target_names.size());