mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 11:54:47 +00:00
Make active group respect clipping/overlay.
This commit is contained in:
parent
34c23bee06
commit
b763330289
1 changed files with 5 additions and 5 deletions
|
|
@ -532,10 +532,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (this.clipTo) {
|
||||
canvasToDrawOn.restore();
|
||||
}
|
||||
|
||||
// delegate rendering to group selection (if one exists)
|
||||
if (activeGroup) {
|
||||
//Store objects in group preserving order, then replace
|
||||
|
|
@ -546,7 +542,11 @@
|
|||
}
|
||||
});
|
||||
activeGroup._set('objects', sortedObjects);
|
||||
this._draw(this.contextTop, activeGroup);
|
||||
this._draw(canvasToDrawOn, activeGroup);
|
||||
}
|
||||
|
||||
if (this.clipTo) {
|
||||
canvasToDrawOn.restore();
|
||||
}
|
||||
|
||||
if (this.overlayImage) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue