diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 15ce884..d0a9083 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -734,8 +734,8 @@ this._spriteRect.transform.worldTransform = this.transform.worldTransform; - this._spriteRect.anchor.x = -rect.x / rect.width; - this._spriteRect.anchor.y = -rect.y / rect.height; + this._spriteRect.anchor.set(-rect.x / rect.width, -rect.y / rect.height); + this._spriteRect.onAnchorUpdate(); this._spriteRect._renderWebGL(renderer); };