diff --git a/src/shapes/object.class.js b/src/shapes/object.class.js index 3cee73ee..02d65d10 100644 --- a/src/shapes/object.class.js +++ b/src/shapes/object.class.js @@ -1148,6 +1148,9 @@ } this.clipTo && fabric.util.clipContext(this, ctx); if (this.objectCaching && (!this.group || this.needsItsOwnCache)) { + if (!this._cacheCanvas) { + this._createCacheCanvas(); + } if (this.isCacheDirty(noTransform)) { this.statefullCache && this.saveState({ propertySet: 'cacheProperties' }); this.drawObject(this._cacheContext, noTransform);