mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-20 21:07:17 +01:00
Fix error when the data manager addon does not yet have a projectsetting entry.
This commit is contained in:
parent
16f4c897cf
commit
a201cec751
@ -223,8 +223,9 @@ func save_to_project_settings() -> void:
|
||||
ProjectSettings.set("addons/data_manager/folder_settings", get_as_json())
|
||||
|
||||
func load_from_project_settings() -> void:
|
||||
var d : String = ProjectSettings.get("addons/data_manager/folder_settings")
|
||||
|
||||
if d != "":
|
||||
set_from_json(d)
|
||||
if ProjectSettings.has_setting("addons/data_manager/folder_settings"):
|
||||
var d : String = ProjectSettings.get("addons/data_manager/folder_settings")
|
||||
|
||||
if d != "":
|
||||
set_from_json(d)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user