Skip to content

Commit

Permalink
fix(GLTFExporter): return populated json (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Oct 24, 2023
1 parent e7b3328 commit 89d7e63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/exporters/GLTFExporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,10 +731,11 @@ class GLTFWriter {
if (json.buffers && json.buffers.length > 0) {
readAsDataURL(blob).then((uri) => {
json.buffers[0].uri = uri
onDone(json)
})
} else {
onDone(json)
}

onDone(json)
}
}

Expand Down

0 comments on commit 89d7e63

Please sign in to comment.