Skip to content

Commit

Permalink
Fix/246: Cannot find name 'GLTFAction'.
Browse files Browse the repository at this point in the history
this is a partial fix for #246 specifically for #246 (comment)
  • Loading branch information
btoo committed May 19, 2024
1 parent de1d1c2 commit 462d046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}

Expand Down

0 comments on commit 462d046

Please sign in to comment.