|
|
@@ -878,13 +878,6 @@ EditorSettings *EditorSettings::get_singleton() {
|
|
|
return singleton.ptr();
|
|
|
}
|
|
|
|
|
|
-void EditorSettings::ensure_class_registered() {
|
|
|
- ClassDB::APIType prev_api = ClassDB::get_current_api();
|
|
|
- ClassDB::set_current_api(ClassDB::API_EDITOR);
|
|
|
- GDREGISTER_CLASS(EditorSettings); // Otherwise it can't be unserialized.
|
|
|
- ClassDB::set_current_api(prev_api);
|
|
|
-}
|
|
|
-
|
|
|
void EditorSettings::create() {
|
|
|
// IMPORTANT: create() *must* create a valid EditorSettings singleton,
|
|
|
// as the rest of the engine code will assume it. As such, it should never
|
|
|
@@ -895,8 +888,6 @@ void EditorSettings::create() {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- ensure_class_registered();
|
|
|
-
|
|
|
String config_file_path;
|
|
|
Ref<ConfigFile> extra_config = memnew(ConfigFile);
|
|
|
|