diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-07-15 19:29:00 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-07-15 19:29:00 -0300 |
commit | a3f1ee5c57d7818eaa30c272dd97d1bbb06ca099 (patch) | |
tree | d35d396e515ce20df6b76cc3c461cd7d1ba4cbfb /core/project_settings.cpp | |
parent | f6ce73f7245fe9cc06d942ac4c8cec44a7252c5c (diff) | |
download | redot-engine-a3f1ee5c57d7818eaa30c272dd97d1bbb06ca099.tar.gz |
Global class names (and GDScript support for it)
Diffstat (limited to 'core/project_settings.cpp')
-rw-r--r-- | core/project_settings.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |