mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
Clear mask in Draw tools if it's not needed and it already exists
This commit is contained in:
parent
db8ded9d66
commit
9fb9d06c38
|
@ -132,6 +132,8 @@ func update_mirror_brush() -> void:
|
|||
|
||||
func update_mask(can_skip := true) -> void:
|
||||
if can_skip and Global.pressure_sensitivity_mode == Global.PressureSensitivity.NONE:
|
||||
if _mask:
|
||||
_mask = PoolByteArray()
|
||||
return
|
||||
var size: Vector2 = Global.current_project.size
|
||||
# Faster than zeroing PoolByteArray directly.
|
||||
|
|
Loading…
Reference in a new issue