1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 15:39:49 +00:00

Fix Pencil bug with transparent colors immediately blending when Overwrite is setto false

This commit is contained in:
Manolis Papadeas 2022-01-08 17:18:59 +02:00
parent 0da52326a3
commit db8ded9d66

View file

@ -78,7 +78,10 @@ func draw_start(position: Vector2) -> void:
_picking_color = false _picking_color = false
Global.canvas.selection.transform_content_confirm() Global.canvas.selection.transform_content_confirm()
update_mask() var can_skip_mask := true
if tool_slot.color.a < 1 and !_overwrite:
can_skip_mask = false
update_mask(can_skip_mask)
_changed = false _changed = false
_drawer.color_op.changed = false _drawer.color_op.changed = false
_drawer.color_op.overwrite = _overwrite _drawer.color_op.overwrite = _overwrite