From a3f1ee5c57d7818eaa30c272dd97d1bbb06ca099 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 15 Jul 2018 19:29:00 -0300 Subject: Global class names (and GDScript support for it) --- core/project_settings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/project_settings.cpp') diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 7f9f4b638a..b1fd66e566 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -515,7 +515,11 @@ Error ProjectSettings::_load_settings_text(const String p_path) { } } else { // config_version is checked and dropped - set(section + "/" + assign, value); + if (section == String()) { + set(assign, value); + } else { + set(section + "/" + assign, value); + } } } else if (next_tag.name != String()) { section = next_tag.name; -- cgit v1.2.3