From a7cf93d1e533f64720149a30cf413e1bed3cba67 Mon Sep 17 00:00:00 2001 From: OverloadedOrama Date: Fri, 26 Jan 2024 04:05:37 +0200 Subject: [PATCH] Fix not being able to draw when closing the splash screen Regression from b08420d0 --- src/Autoload/Global.gd | 2 +- src/Main.gd | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index b614452c7..5ef63db70 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -114,7 +114,7 @@ var current_project_index := 0: ## Tells if the user allowed to draw on the canvas. Usually it is temporarily set to ## [code]false[/code] when we are moving some gizmo and don't want the current tool to accidentally ## start drawing.[br](This does not depend on layer invisibility or lock/unlock status). -var can_draw := false +var can_draw := true ## (Intended to be used as getter only) Tells if the user allowed to move the guide while on canvas. var move_guides_on_canvas := true diff --git a/src/Main.gd b/src/Main.gd index b1bf082a3..7e0d9a36e 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -153,8 +153,6 @@ func _show_splash_screen() -> void: $Dialogs/SplashDialog.popup_centered() # Splash screen modulate = Color(0.5, 0.5, 0.5) - else: - Global.can_draw = true func _handle_backup() -> void: @@ -176,7 +174,6 @@ func _handle_backup() -> void: _on_BackupConfirmation_custom_action.bind(project_paths, backup_paths) ) backup_confirmation.popup_centered() - Global.can_draw = false modulate = Color(0.5, 0.5, 0.5) else: if Global.open_last_project: