From 9fb9d06c3875e01412622633c649e0b550a7ed7e Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 8 Jan 2022 17:44:15 +0200 Subject: [PATCH] Clear mask in Draw tools if it's not needed and it already exists --- src/Tools/Draw.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tools/Draw.gd b/src/Tools/Draw.gd index 1b65fc800..bd9f0a862 100644 --- a/src/Tools/Draw.gd +++ b/src/Tools/Draw.gd @@ -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.