From 488cf0cc933e6010386d348f366458445d753a43 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Tue, 30 Aug 2022 20:11:01 +0300 Subject: [PATCH] Pixel perfect only affects the square brush --- src/Tools/Draw.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tools/Draw.gd b/src/Tools/Draw.gd index 29abacfbb..d8710fbe4 100644 --- a/src/Tools/Draw.gd +++ b/src/Tools/Draw.gd @@ -214,7 +214,9 @@ func _prepare_tool() -> void: var strength := _strength if Global.pressure_sensitivity_mode == Global.PressureSensitivity.ALPHA: strength *= Tools.pen_pressure - _drawer.pixel_perfect = Tools.pixel_perfect if _brush_size == 1 else false + _drawer.pixel_perfect = false + if _brush_size == 1 and _brush.type == Brushes.PIXEL: + _drawer.pixel_perfect = Tools.pixel_perfect _drawer.horizontal_mirror = Tools.horizontal_mirror _drawer.vertical_mirror = Tools.vertical_mirror _drawer.color_op.strength = strength