three-stdlib 2.28.0 → 2.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -495,9 +495,11 @@ class GLTFWriter {
495
495
  if (json.buffers && json.buffers.length > 0) {
496
496
  readAsDataURL(blob).then((uri) => {
497
497
  json.buffers[0].uri = uri;
498
+ onDone(json);
498
499
  });
500
+ } else {
501
+ onDone(json);
499
502
  }
500
- onDone(json);
501
503
  }
502
504
  }
503
505
  /**