diff --git a/CHANGELOG.md b/CHANGELOG.md index 79071cfc2..bd9f0d1cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ Built using Godot 3.5.2 - Pxo files can now be loaded from the Open menu option in the Web version. [3dcc51705a999145e53a8e6d4de217dc03b0f147](https://github.com/Orama-Interactive/Pixelorama/commit/3dcc51705a999145e53a8e6d4de217dc03b0f147) - Fixed crash due to division by zero when locking two or three ValueSliders, and one of them has the value of 0 and the user attempts to change it. - Fixed exporting selected layers not including the non-selected frames. +- Made the color picker not select fully transparent pixels that are not black. [#999](https://github.com/Orama-Interactive/Pixelorama/issues/999) - The ellipse tool no longer produces gaps with large sizes. [4f3a7a305a264e0d2fe86c201af76eca4b2fea0a](https://github.com/Orama-Interactive/Pixelorama/commit/4f3a7a305a264e0d2fe86c201af76eca4b2fea0a) - Fix "visible layers" option on the export dialog producing wrong results. [346d1f071a8c6b1defb1072d39aea9c642f1ef59](https://github.com/Orama-Interactive/Pixelorama/commit/346d1f071a8c6b1defb1072d39aea9c642f1ef59) - Random brushes now work again. [1317e40ffa5e9f01a9d214221bb5133db20a1de9](https://github.com/Orama-Interactive/Pixelorama/commit/1317e40ffa5e9f01a9d214221bb5133db20a1de9) diff --git a/src/Tools/ColorPicker.gd b/src/Tools/ColorPicker.gd index 7e20d11ee..fe6cb2c2a 100644 --- a/src/Tools/ColorPicker.gd +++ b/src/Tools/ColorPicker.gd @@ -82,7 +82,7 @@ func _pick_color(position: Vector2) -> void: image.lock() color = image.get_pixelv(position) image.unlock() - if color != Color(0, 0, 0, 0): + if not is_zero_approx(color.a): break CURRENT_LAYER: image.lock() diff --git a/src/Tools/Draw.gd b/src/Tools/Draw.gd index 99f9475ae..37c097043 100644 --- a/src/Tools/Draw.gd +++ b/src/Tools/Draw.gd @@ -701,7 +701,7 @@ func _pick_color(position: Vector2) -> void: image.lock() color = image.get_pixelv(position) image.unlock() - if color != Color(0, 0, 0, 0): + if not is_zero_approx(color.a): break var button := BUTTON_LEFT if Tools._slots[BUTTON_LEFT].tool_node == self else BUTTON_RIGHT Tools.assign_color(color, button, false)