From bec7ceb9746041f6366a6d7272a19533c2b08578 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas Date: Sun, 21 Jan 2024 19:46:01 +0200 Subject: [PATCH] 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. --- src/UI/Canvas/ReferenceImages.gd | 1 - 1 file changed, 1 deletion(-) diff --git a/src/UI/Canvas/ReferenceImages.gd b/src/UI/Canvas/ReferenceImages.gd index 727b2e1f8..59f661a7c 100644 --- a/src/UI/Canvas/ReferenceImages.gd +++ b/src/UI/Canvas/ReferenceImages.gd @@ -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