1
0
Fork 0
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:
Manolis Papadeas 2022-01-08 17:44:15 +02:00
parent db8ded9d66
commit 9fb9d06c38

View file

@ -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.