mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Fix not being able to draw when closing the splash screen
Regression from b08420d0
This commit is contained in:
parent
508f8f0d15
commit
a7cf93d1e5
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue