mirror of https://github.com/godotengine/godot
Merge cfe9bc2816 into 15ff450680
This commit is contained in:
commit
3d39af4644
|
|
@ -3185,9 +3185,11 @@ Error GLTFDocument::_serialize_meshes(Ref<GLTFState> p_state) {
|
||||||
primitives.push_back(primitive);
|
primitives.push_back(primitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!target_names.is_empty()) {
|
||||||
Dictionary e;
|
Dictionary e;
|
||||||
e["targetNames"] = target_names;
|
e["targetNames"] = target_names;
|
||||||
gltf_mesh["extras"] = e;
|
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());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue