소스 검색

expose then function

need help with this.
Pryme8 5 년 전
부모
커밋
549fc6dc67
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/Materials/Textures/Packer/packer.ts

+ 3 - 2
src/Materials/Textures/Packer/packer.ts

@@ -247,8 +247,9 @@ export class TexturePacker{
                 return reject(e);
             }
         });
-
-    return;
+        
+    //Return the Promise and expect user to interact with a then, statment.
+    return this;
     }
 
     /**