Explorar o código

Fix scene loader

sebavan %!s(int64=6) %!d(string=hai) anos
pai
achega
40849db689
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Loading/sceneLoader.ts

+ 1 - 1
src/Loading/sceneLoader.ts

@@ -368,7 +368,7 @@ export class SceneLoader {
             plugin = <any>registeredPlugin.plugin;
         }
 
-        if (plugin) {
+        if (!plugin) {
             throw "The loader plugin corresponding to the file type you are trying to load has not been found. If using es6, please import the plugin you wish to use before.";
         }