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.
@@ -497,9 +497,11 @@ class GLTFWriter {
497
497
  if (json.buffers && json.buffers.length > 0) {
498
498
  readAsDataURL(blob).then((uri) => {
499
499
  json.buffers[0].uri = uri;
500
+ onDone(json);
500
501
  });
502
+ } else {
503
+ onDone(json);
501
504
  }
502
- onDone(json);
503
505
  }
504
506
  }
505
507
  /**