Update path.class.js

apply opacity property on paths.
This commit is contained in:
asturur 2014-06-19 10:42:05 +02:00
parent 81d2f2b21e
commit 572038b0e5

View file

@ -464,7 +464,7 @@
this._setShadow(ctx);
this.clipTo && fabric.util.clipContext(this, ctx);
ctx.beginPath();
ctx.globalAlpha = this.group ? (ctx.globalAlpha * this.opacity) : this.opacity;
this._render(ctx);
this._renderFill(ctx);
this._renderStroke(ctx);