@urso/core 0.7.26 → 0.7.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.26",
3
+ "version": "0.7.28",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -194,6 +194,11 @@ class ModulesAssetsService {
194
194
  newFilename = folderPath + '/' + frame.filename;
195
195
 
196
196
  Urso.cache.addFile(newFilename, texture);
197
+
198
+ if(assetModel.cacheTextures) {
199
+ const textureKey = newFilename.split('/').pop().split('.')[0];
200
+ Urso.cache.addTexture(textureKey, texture);
201
+ }
197
202
  }
198
203
  }
199
204
  }