diff --git a/src/utils/parser.js b/src/utils/parser.js index d68627d..757217f 100644 --- a/src/utils/parser.js +++ b/src/utils/parser.js @@ -119,7 +119,7 @@ function parse(gltf, { fileName = 'model', ...options } = {}) { materials: { ${materials.map(({ name, type }) => (isVarName(name) ? name : `['${name}']`) + ': THREE.' + type).join(',')} } - animations: GLTFAction[] + animations: ${animations.length ? 'GLTFAction' : ''}[] }\n${animationTypes}\n${contextType}` }