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:
parent
c8bf3b2286
commit
02a74d498c
|
@ -2,7 +2,13 @@ extends Node2D
|
||||||
|
|
||||||
|
|
||||||
func _input(event: InputEvent) -> void:
|
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()
|
update()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue