Преглед изворни кода

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