1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix Global.can_draw being set to true all the time

Note for the future, perhaps using _unhandled_input() might remove the need of this variable.
This commit is contained in:
Emmanouil Papadeas 2024-01-21 19:46:01 +02:00
parent 561a374cc0
commit bec7ceb974

View file

@ -55,7 +55,6 @@ func _input(event: InputEvent) -> void:
var ri: ReferenceImage = Global.current_project.get_current_reference_image()
if !ri:
Global.can_draw = true
return
# Check if want to cancelthe reference transform