three-stdlib 2.28.0 → 2.28.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  /**