diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index 20a8d42a..adfe4721 100644 --- a/src/shapes/object.class.js +++ b/src/shapes/object.class.js @@ -884,6 +884,24 @@ } this[key] = value; + + if (this.canvas && this.canvas.turbo) { + if (key !== 'left' && + key !== 'top' && + key !== 'scaleX' && + key !== 'scaleY' && + key !== 'width' && + key !== 'height' && + key !== 'angle' || + !this.active){ + + if (this.canvas._isCacheable(this)) { + this.width = this.getWidth(); + this.height = this.getHeight(); + } + this.updateCache(); + } + } return this; },