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

Fix bug where the tool changes while having an image brush selected

The indicator appeared as a white square until the mouse moved, and errors appeared in the debugger.
This commit is contained in:
Emmanouil Papadeas 2023-01-23 19:05:36 +02:00
parent 640282f00c
commit a9692ca859

View file

@ -2,8 +2,9 @@ extends Node2D
func _input(event: InputEvent) -> void:
if Global.has_focus and event is InputEventMouseMotion:
update()
if Global.has_focus:
if event is InputEventMouse or event is InputEventKey:
update()
func _draw() -> void: