浏览代码

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;
     }
 
     /**