@urso/core 0.7.50 → 0.7.51

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.50",
3
+ "version": "0.7.51",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -39,7 +39,7 @@ PIXI.Text.prototype.drawLetterSpacing = function (text, x, y, isStroke) {
39
39
  }
40
40
  return;
41
41
  }
42
-
42
+
43
43
  var currentPosition = x;
44
44
 
45
45
  var textIndexOffset = this.text.indexOf(text); //colors patch block
@@ -145,7 +145,7 @@ PIXI.Container.prototype.renderAdvanced = function (renderer) {
145
145
  renderer.mask.pop(this);
146
146
  }
147
147
 
148
- if(excludedFromMaskChildsIndexes.length > 0) {
148
+ if (excludedFromMaskChildsIndexes.length > 0) {
149
149
  excludedFromMaskChildsIndexes.forEach(index => this.children[index].render(renderer));
150
150
  renderer.batch.flush();
151
151
  }
@@ -154,3 +154,18 @@ PIXI.Container.prototype.renderAdvanced = function (renderer) {
154
154
  renderer.filter.pop();
155
155
  }
156
156
  }
157
+
158
+ //MeshMaterial for spine with initial(setup) sequence fix
159
+ Object.defineProperty(PIXI.MeshMaterial.prototype, "texture", {
160
+ get: function () {
161
+ return this.uniforms.uSampler
162
+ },
163
+ set: function (value) {
164
+ if (this.uniforms.uSampler !== value) {
165
+ this.uniforms.uSampler = value;
166
+ this.uvMatrix.texture = value;
167
+ }
168
+ },
169
+ enumerable: !1,
170
+ configurable: !0
171
+ });