From ec805de09f3ce218292f7d010b88c8a366af33ea Mon Sep 17 00:00:00 2001 From: btoo <8883465+btoo@users.noreply.github.com> Date: Sun, 19 May 2024 18:45:34 -0400 Subject: [PATCH] Fix/246: Cannot find name 'GLTFAction'. this is a partial fix for https://github.com/pmndrs/gltfjsx/issues/246 specifically for https://github.com/pmndrs/gltfjsx/issues/246#issuecomment-2119385233 --- src/utils/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}` }