After changing morphtargetinfluences on a loaded .gltf model, when I try to export it with the gltf exporter, if i don’t updateMorphTargets() which resets them to 0, the file is not readable.
How can I export the model with changed morph target values?
I change them with a range input, from 0 to 1, they work live in the viewport. So probably I’m doing something wrong while exporting.
const gltfExporter = new GLTFExporter();const options = {
trs: params.trs,
onlyVisible: params.onlyVisible,
binary: params.binary,
maxTextureSize: params.maxTextureSize,
animations: [clip],
};
model.updateMorphTargets();