Skip to content

Commit

Permalink
fix: gltf downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshgrover23 committed Jan 15, 2025
1 parent 99d5346 commit 4b4acd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/download-fns/download-gltf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ export const downloadGltf = async (

const gltfBlob = await gltfPromise

saveAs(gltfBlob, fileName + ".gltf")
const extension = options.binary ? ".glb" : ".gltf"
saveAs(gltfBlob, fileName + extension)
}

0 comments on commit 4b4acd1

Please sign in to comment.