@urso/core 0.9.2-dev → 0.9.3-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 +2 -2
- package/package.json +1 -1
- package/src/js/lib/cache.js +2 -2
package/build/js/index.js
CHANGED
|
@@ -68646,8 +68646,8 @@ class LibCache {
|
|
|
68646
68646
|
for (const frameName in atlas._frames) {
|
|
68647
68647
|
const nameSplit = frameName.split(".");
|
|
68648
68648
|
const name = nameSplit.splice(0, nameSplit.length - 1).join(".");
|
|
68649
|
-
const frame = atlas._frames[
|
|
68650
|
-
const region = new TextureAtlasRegion(page,
|
|
68649
|
+
const frame = atlas._frames[frameName];
|
|
68650
|
+
const region = new TextureAtlasRegion(page, name);
|
|
68651
68651
|
region.width = frame.frame.w;
|
|
68652
68652
|
region.height = frame.frame.h;
|
|
68653
68653
|
region.u = frame.frame.x / baseTexture.texture.width;
|
package/package.json
CHANGED
package/src/js/lib/cache.js
CHANGED
|
@@ -53,8 +53,8 @@ class LibCache {
|
|
|
53
53
|
for (const frameName in atlas._frames) {
|
|
54
54
|
const nameSplit = frameName.split('.');
|
|
55
55
|
const name = nameSplit.splice(0, nameSplit.length - 1).join('.')
|
|
56
|
-
const frame = atlas._frames[
|
|
57
|
-
const region = new spine.TextureAtlasRegion(page,
|
|
56
|
+
const frame = atlas._frames[frameName];
|
|
57
|
+
const region = new spine.TextureAtlasRegion(page, name);
|
|
58
58
|
|
|
59
59
|
region.width = frame.frame.w;
|
|
60
60
|
region.height = frame.frame.h;
|