From 0a3a144976eca2333e70bb170ddca74507a204c8 Mon Sep 17 00:00:00 2001 From: Derek Detweiler Date: Fri, 20 Aug 2021 16:28:58 -0400 Subject: [PATCH] Fixed up AssetManager to fire a progress call when no assets are loaded. --- src/AssetManager.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/AssetManager.js b/src/AssetManager.js index 945853a1..7a5beea0 100644 --- a/src/AssetManager.js +++ b/src/AssetManager.js @@ -179,9 +179,14 @@ export default class AssetManager { } queue.load(); - } else if (all) { + } else { setTimeout(() => { // To run in same async sequence as above. - all(); + if (one) { + one(1); + } + if (all) { + all(); + } }, 1); }