Merge pull request #101275 from aaronfranke/gltf-target-names-unused
GLTF: Don't write unused `"targetNames"` on meshes
This commit is contained in:
@ -3193,9 +3193,11 @@ Error GLTFDocument::_serialize_meshes(Ref<GLTFState> p_state) {
|
|||||||
primitives.push_back(primitive);
|
primitives.push_back(primitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary e;
|
if (!target_names.is_empty()) {
|
||||||
e["targetNames"] = target_names;
|
Dictionary e;
|
||||||
gltf_mesh["extras"] = e;
|
e["targetNames"] = target_names;
|
||||||
|
gltf_mesh["extras"] = e;
|
||||||
|
}
|
||||||
_attach_meta_to_extras(import_mesh, gltf_mesh);
|
_attach_meta_to_extras(import_mesh, gltf_mesh);
|
||||||
|
|
||||||
weights.resize(target_names.size());
|
weights.resize(target_names.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user