diff --git a/src/containers/bit-brush-mode.jsx b/src/containers/bit-brush-mode.jsx index 9742458e..c93c2ddd 100644 --- a/src/containers/bit-brush-mode.jsx +++ b/src/containers/bit-brush-mode.jsx @@ -45,7 +45,7 @@ class BitBrushMode extends React.Component { clearSelection(this.props.clearSelectedItems); // Force the default brush color if fill is MIXED or transparent let color = this.props.color; - if (color === MIXED || color === null) { + if (color === MIXED) { this.props.onChangeFillColor(DEFAULT_COLOR); color = DEFAULT_COLOR; } diff --git a/src/helper/bit-tools/brush-tool.js b/src/helper/bit-tools/brush-tool.js index d496a995..9ee77bb2 100644 --- a/src/helper/bit-tools/brush-tool.js +++ b/src/helper/bit-tools/brush-tool.js @@ -24,7 +24,7 @@ class BrushTool extends paper.Tool { this.size = 5; } setColor (color) { - this.color = color; + this.color = color ? color : new paper.Color(0, 0, 0, 0); } bresenhamLine (point1, point2, callback){ // Fast Math.floor