@urso/core 0.9.1-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 CHANGED
@@ -68644,8 +68644,10 @@ 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 nameSplit = frameName.split(".");
68648
+ const name = nameSplit.splice(0, nameSplit.length - 1).join(".");
68647
68649
  const frame = atlas._frames[frameName];
68648
- const region = new TextureAtlasRegion(page, frameName);
68650
+ const region = new TextureAtlasRegion(page, name);
68649
68651
  region.width = frame.frame.w;
68650
68652
  region.height = frame.frame.h;
68651
68653
  region.u = frame.frame.x / baseTexture.texture.width;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.9.1-dev",
3
+ "version": "0.9.3-dev",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -51,8 +51,10 @@ class LibCache {
51
51
  textureAtlas.pages.push(page);
52
52
 
53
53
  for (const frameName in atlas._frames) {
54
+ const nameSplit = frameName.split('.');
55
+ const name = nameSplit.splice(0, nameSplit.length - 1).join('.')
54
56
  const frame = atlas._frames[frameName];
55
- const region = new spine.TextureAtlasRegion(page, frameName);
57
+ const region = new spine.TextureAtlasRegion(page, name);
56
58
 
57
59
  region.width = frame.frame.w;
58
60
  region.height = frame.frame.h;