Procházet zdrojové kódy

Fix incorrect logic in sceneLoader

Gary Hsu před 4 roky
rodič
revize
ba717920b5
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/Loading/sceneLoader.ts

+ 2 - 2
src/Loading/sceneLoader.ts

@@ -615,8 +615,8 @@ export class SceneLoader {
             name = filename;
         }
 
-        if (StringTools.StartsWith(url, "file:") && name) {
-            file = FilesInputStore.FilesToLoad[name.toLowerCase()];
+        if (!file && name && StringTools.StartsWith(url, "file:")) {
+            file = FilesInputStore.FilesToLoad[name.toLowerCase()] || null;
         }
 
         return {