diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-10-05 15:34:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-10-05 15:34:34 -0300 |
commit | 3d87b70f7a8cadaab581c481fcc51622e8043ee0 (patch) | |
tree | 0dcf539804decaf77f74086774a32c64872e7c11 /modules/gdnative | |
parent | 928efe06d672d8afeb595f75878746a51e4dc2ce (diff) |
Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
Diffstat (limited to 'modules/gdnative')
-rw-r--r-- | modules/gdnative/gd_native_library_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/gd_native_library_editor.cpp b/modules/gdnative/gd_native_library_editor.cpp index cc2c2b69a6..c37b7f473d 100644 --- a/modules/gdnative/gd_native_library_editor.cpp +++ b/modules/gdnative/gd_native_library_editor.cpp @@ -72,7 +72,7 @@ void GDNativeLibraryEditor::_update_libraries() { libraries->create_item(); //rppt Vector<String> enabled_paths; - if (ProjectSettings::get_singleton()->has("gdnative/singletons")) { + if (ProjectSettings::get_singleton()->has_setting("gdnative/singletons")) { enabled_paths = ProjectSettings::get_singleton()->get("gdnative/singletons"); } Set<String> enabled_list; @@ -100,7 +100,7 @@ void GDNativeLibraryEditor::_item_edited() { String path = item->get_metadata(0); Vector<String> enabled_paths; - if (ProjectSettings::get_singleton()->has("gdnative/singletons")) { + if (ProjectSettings::get_singleton()->has_setting("gdnative/singletons")) { enabled_paths = ProjectSettings::get_singleton()->get("gdnative/singletons"); } |