@urso/core 0.9.1-dev → 0.9.2-dev
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/build/js/index.js +3 -1
- package/package.json +1 -1
- package/src/js/lib/cache.js +3 -1
package/build/js/index.js
CHANGED
|
@@ -68644,7 +68644,9 @@ class LibCache {
|
|
|
68644
68644
|
page.uWrap = page.vWrap = 33071;
|
|
68645
68645
|
textureAtlas.pages.push(page);
|
|
68646
68646
|
for (const frameName in atlas._frames) {
|
|
68647
|
-
const
|
|
68647
|
+
const nameSplit = frameName.split(".");
|
|
68648
|
+
const name = nameSplit.splice(0, nameSplit.length - 1).join(".");
|
|
68649
|
+
const frame = atlas._frames[name];
|
|
68648
68650
|
const region = new TextureAtlasRegion(page, frameName);
|
|
68649
68651
|
region.width = frame.frame.w;
|
|
68650
68652
|
region.height = frame.frame.h;
|
package/package.json
CHANGED
package/src/js/lib/cache.js
CHANGED
|
@@ -51,7 +51,9 @@ class LibCache {
|
|
|
51
51
|
textureAtlas.pages.push(page);
|
|
52
52
|
|
|
53
53
|
for (const frameName in atlas._frames) {
|
|
54
|
-
const
|
|
54
|
+
const nameSplit = frameName.split('.');
|
|
55
|
+
const name = nameSplit.splice(0, nameSplit.length - 1).join('.')
|
|
56
|
+
const frame = atlas._frames[name];
|
|
55
57
|
const region = new spine.TextureAtlasRegion(page, frameName);
|
|
56
58
|
|
|
57
59
|
region.width = frame.frame.w;
|