소스 검색

Fix scene loader

sebavan 6 년 전
부모
커밋
40849db689
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.";
         }