diff --git a/src/core/graphics/Graphics.js b/src/core/graphics/Graphics.js index 5e3afa2..130758c 100644 --- a/src/core/graphics/Graphics.js +++ b/src/core/graphics/Graphics.js @@ -728,8 +728,8 @@ this._spriteRect.worldAlpha = this.worldAlpha; - Graphics._SPRITE_TEXTURE.frame.width = rect.width; - Graphics._SPRITE_TEXTURE.frame.height = rect.height; + Graphics._SPRITE_TEXTURE._frame.width = rect.width; + Graphics._SPRITE_TEXTURE._frame.height = rect.height; this._spriteRect.transform.worldTransform = this.transform.worldTransform; @@ -1079,6 +1079,10 @@ } } + if(this._spriteRect) + { + this._spriteRect.destroy(); + } this.graphicsData = null; this.currentPath = null;