@urso/core 0.7.33 → 0.7.34
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
|
@@ -185,18 +185,17 @@ class ModulesAssetsService {
|
|
|
185
185
|
let imageData = Urso.cache.getAtlas(assetKey);
|
|
186
186
|
const folderPath = imageData.url.split('/').slice(0, -1).join('/');
|
|
187
187
|
|
|
188
|
-
for (
|
|
189
|
-
let
|
|
190
|
-
let
|
|
191
|
-
let newFilename = frame.filename;
|
|
188
|
+
for (const name of Object.keys(imageData.spritesheet._frames)) {
|
|
189
|
+
let texture = imageData.textures[name];
|
|
190
|
+
let newFilename = name;
|
|
192
191
|
|
|
193
|
-
if (!
|
|
194
|
-
newFilename = folderPath + '/' +
|
|
192
|
+
if (!name.includes('/'))
|
|
193
|
+
newFilename = folderPath + '/' + name;
|
|
195
194
|
|
|
196
195
|
Urso.cache.addFile(newFilename, texture);
|
|
197
196
|
|
|
198
|
-
if(assetModel.cacheTextures) {
|
|
199
|
-
const textureKey = newFilename.split('
|
|
197
|
+
if (assetModel.cacheTextures) {
|
|
198
|
+
const textureKey = newFilename.split('.')[0];
|
|
200
199
|
Urso.cache.addTexture(textureKey, texture);
|
|
201
200
|
}
|
|
202
201
|
}
|