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

Fix shape tool previews not being updated when modifier keys are being pressed

This commit is contained in:
Manolis Papadeas 2021-12-06 19:11:50 +02:00
parent c8bf3b2286
commit 02a74d498c

View file

@ -2,7 +2,13 @@ extends Node2D
func _input(event: InputEvent) -> void:
if Global.has_focus and event is InputEventMouse:
if Global.has_focus:
if (
event is InputEventMouse
or event.is_action("shift")
or event.is_action("ctrl")
or event.is_action("alt")
):
update()