Make active group respect clipping/overlay.

This commit is contained in:
kangax 2012-11-01 13:09:22 +01:00
parent 34c23bee06
commit b763330289

View file

@ -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) {