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

Pixel perfect only affects the square brush

This commit is contained in:
Manolis Papadeas 2022-08-30 20:11:01 +03:00
parent 47ba050ad4
commit 488cf0cc93

View file

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