Browse Source

expose then function

need help with this.
Pryme8 5 năm trước cách đây
mục cha
commit
549fc6dc67
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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;
     }
 
     /**