patch renderer persistence to default default arg

This commit is contained in:
Lera Elvoé 2023-12-15 00:39:29 +03:00
parent f5cea0efa2
commit ca0fc15103
No known key found for this signature in database

View file

@ -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. ## 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. ## 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) _lazy_load_channel(name_space, channel)
var validated_name := name_space.validate_filename() var validated_name := name_space.validate_filename()
var validated_channel := channel.validate_filename() var validated_channel := channel.validate_filename()