Skip to content

Commit

Permalink
fixed graphics fill alpha bug
Browse files Browse the repository at this point in the history
Fixed issue where if beginfill alpha was set to 0 it would be stored as
1.
  • Loading branch information
GoodBoyDigital committed Aug 12, 2013
1 parent be1126b commit 02ab912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pixi/primitives/Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ PIXI.Graphics.prototype.beginFill = function(color, alpha)
{
this.filling = true;
this.fillColor = color || 0;
this.fillAlpha = alpha || 1;
this.fillAlpha = (alpha == undefined) ? 1 : alpha;
}

/**
Expand Down

0 comments on commit 02ab912

Please sign in to comment.