diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index be4c4fb..76c1079 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -792,8 +792,8 @@ sprite.worldAlpha = this.worldAlpha * sprite.alpha; sprite.blendMode = this.blendMode; - sprite.texture._frame.width = rect.width; - sprite.texture._frame.height = rect.height; + sprite._texture._frame.width = rect.width; + sprite._texture._frame.height = rect.height; sprite.transform.worldTransform = this.transform.worldTransform; diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index be4c4fb..76c1079 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -792,8 +792,8 @@ sprite.worldAlpha = this.worldAlpha * sprite.alpha; sprite.blendMode = this.blendMode; - sprite.texture._frame.width = rect.width; - sprite.texture._frame.height = rect.height; + sprite._texture._frame.width = rect.width; + sprite._texture._frame.height = rect.height; sprite.transform.worldTransform = this.transform.worldTransform; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 121bf58..cd574ac 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -147,12 +147,12 @@ // so if _width is 0 then width was not set.. if (this._width) { - this.scale.x = sign(this.scale.x) * this._width / this.texture.orig.width; + this.scale.x = sign(this.scale.x) * this._width / this._texture.orig.width; } if (this._height) { - this.scale.y = sign(this.scale.y) * this._height / this.texture.orig.height; + this.scale.y = sign(this.scale.y) * this._height / this._texture.orig.height; } } diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index be4c4fb..76c1079 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -792,8 +792,8 @@ sprite.worldAlpha = this.worldAlpha * sprite.alpha; sprite.blendMode = this.blendMode; - sprite.texture._frame.width = rect.width; - sprite.texture._frame.height = rect.height; + sprite._texture._frame.width = rect.width; + sprite._texture._frame.height = rect.height; sprite.transform.worldTransform = this.transform.worldTransform; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 121bf58..cd574ac 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -147,12 +147,12 @@ // so if _width is 0 then width was not set.. if (this._width) { - this.scale.x = sign(this.scale.x) * this._width / this.texture.orig.width; + this.scale.x = sign(this.scale.x) * this._width / this._texture.orig.width; } if (this._height) { - this.scale.y = sign(this.scale.y) * this._height / this.texture.orig.height; + this.scale.y = sign(this.scale.y) * this._height / this._texture.orig.height; } } diff --git a/src/core/sprites/canvas/CanvasTinter.js b/src/core/sprites/canvas/CanvasTinter.js index 27e5e0c..fd9de5d 100644 --- a/src/core/sprites/canvas/CanvasTinter.js +++ b/src/core/sprites/canvas/CanvasTinter.js @@ -18,7 +18,7 @@ */ getTintedTexture: (sprite, color) => { - const texture = sprite.texture; + const texture = sprite._texture; color = CanvasTinter.roundColor(color); diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index be4c4fb..76c1079 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -792,8 +792,8 @@ sprite.worldAlpha = this.worldAlpha * sprite.alpha; sprite.blendMode = this.blendMode; - sprite.texture._frame.width = rect.width; - sprite.texture._frame.height = rect.height; + sprite._texture._frame.width = rect.width; + sprite._texture._frame.height = rect.height; sprite.transform.worldTransform = this.transform.worldTransform; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 121bf58..cd574ac 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -147,12 +147,12 @@ // so if _width is 0 then width was not set.. if (this._width) { - this.scale.x = sign(this.scale.x) * this._width / this.texture.orig.width; + this.scale.x = sign(this.scale.x) * this._width / this._texture.orig.width; } if (this._height) { - this.scale.y = sign(this.scale.y) * this._height / this.texture.orig.height; + this.scale.y = sign(this.scale.y) * this._height / this._texture.orig.height; } } diff --git a/src/core/sprites/canvas/CanvasTinter.js b/src/core/sprites/canvas/CanvasTinter.js index 27e5e0c..fd9de5d 100644 --- a/src/core/sprites/canvas/CanvasTinter.js +++ b/src/core/sprites/canvas/CanvasTinter.js @@ -18,7 +18,7 @@ */ getTintedTexture: (sprite, color) => { - const texture = sprite.texture; + const texture = sprite._texture; color = CanvasTinter.roundColor(color); diff --git a/src/filters/displacement/DisplacementFilter.js b/src/filters/displacement/DisplacementFilter.js index d5355c3..b5d030c 100644 --- a/src/filters/displacement/DisplacementFilter.js +++ b/src/filters/displacement/DisplacementFilter.js @@ -35,7 +35,7 @@ this.maskSprite = sprite; this.maskMatrix = maskMatrix; - this.uniforms.mapSampler = sprite.texture; + this.uniforms.mapSampler = sprite._texture; this.uniforms.filterMatrix = maskMatrix; this.uniforms.scale = { x: 1, y: 1 };