mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-16 09:43:11 +00:00
make cacheCanvas created on the fly if needed (#3706)
This commit is contained in:
parent
d058307dd0
commit
ff0b6f0a50
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue