Browse Source

expose then function

need help with this.
Pryme8 5 years ago
parent
commit
549fc6dc67
1 changed files with 3 additions and 2 deletions
  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;
     }
 
     /**