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:
parent
640282f00c
commit
a9692ca859
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue