From ca0fc15103d8ad80329fed70737d7b4dd7198595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Fri, 15 Dec 2023 00:39:29 +0300 Subject: [PATCH] patch renderer persistence to default default arg --- classes/deck/renderer_persistence.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/deck/renderer_persistence.gd b/classes/deck/renderer_persistence.gd index a9a3654..823b284 100644 --- a/classes/deck/renderer_persistence.gd +++ b/classes/deck/renderer_persistence.gd @@ -30,7 +30,7 @@ static func init_namespace(name_space: String) -> bool: ## Returns the corresponding value for the given [param key] in the [param channel] storage. ## If the key does not exist, returns [param default], or [code]null[/code] if the parameter is omitted. -static func get_value(name_space: String, channel: String, key: String, default: Variant) -> Variant: +static func get_value(name_space: String, channel: String, key: String, default: Variant = null) -> Variant: _lazy_load_channel(name_space, channel) var validated_name := name_space.validate_filename() var validated_channel := channel.validate_filename()