@hkdigital/lib-core 0.4.78 → 0.4.80

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.
@@ -290,11 +290,15 @@ export default class SceneBase {
290
290
  console.debug('SceneBase:waitForState:currentState', this.state);
291
291
 
292
292
  waitForState(() => {
293
- return (
294
- this.loaded ||
293
+ const ready = (
294
+ this.state === STATE_LOADED ||
295
295
  this.state === STATE_ABORTED ||
296
296
  this.state === STATE_ERROR
297
297
  );
298
+
299
+ console.debug( { loaded: this.loaded, state: this.state, ready } );
300
+
301
+ return ready;
298
302
  }, waitTimeout)
299
303
  .then(() => {
300
304
  // Remove progress listener
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-core",
3
- "version": "0.4.78",
3
+ "version": "0.4.80",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"