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.
@@ -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
  /**