From 89d7e63589d8e09879fd1737160b93e9f81c6389 Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Tue, 24 Oct 2023 01:23:07 -0500 Subject: [PATCH] fix(GLTFExporter): return populated json (#313) --- src/exporters/GLTFExporter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/exporters/GLTFExporter.js b/src/exporters/GLTFExporter.js index 741b63af..143a42d5 100644 --- a/src/exporters/GLTFExporter.js +++ b/src/exporters/GLTFExporter.js @@ -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) } }