Rename instance()->instantiate() when it's a verb
This commit is contained in:
parent
60dcc4f39c
commit
e28fd07b2b
371 changed files with 1318 additions and 1318 deletions
|
|
@ -50,7 +50,7 @@ Vector<String> EditorFolding::_get_unfolds(const Object *p_object) {
|
|||
|
||||
void EditorFolding::save_resource_folding(const RES &p_resource, const String &p_path) {
|
||||
Ref<ConfigFile> config;
|
||||
config.instance();
|
||||
config.instantiate();
|
||||
Vector<String> unfolds = _get_unfolds(p_resource.ptr());
|
||||
config->set_value("folding", "sections_unfolded", unfolds);
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ void EditorFolding::_set_unfolds(Object *p_object, const Vector<String> &p_unfol
|
|||
|
||||
void EditorFolding::load_resource_folding(RES p_resource, const String &p_path) {
|
||||
Ref<ConfigFile> config;
|
||||
config.instance();
|
||||
config.instantiate();
|
||||
|
||||
String file = p_path.get_file() + "-folding-" + p_path.md5_text() + ".cfg";
|
||||
file = EditorSettings::get_singleton()->get_project_settings_dir().plus_file(file);
|
||||
|
|
@ -137,7 +137,7 @@ void EditorFolding::save_scene_folding(const Node *p_scene, const String &p_path
|
|||
}
|
||||
|
||||
Ref<ConfigFile> config;
|
||||
config.instance();
|
||||
config.instantiate();
|
||||
|
||||
Array unfolds, res_unfolds;
|
||||
Set<RES> resources;
|
||||
|
|
@ -155,7 +155,7 @@ void EditorFolding::save_scene_folding(const Node *p_scene, const String &p_path
|
|||
|
||||
void EditorFolding::load_scene_folding(Node *p_scene, const String &p_path) {
|
||||
Ref<ConfigFile> config;
|
||||
config.instance();
|
||||
config.instantiate();
|
||||
|
||||
String path = EditorSettings::get_singleton()->get_project_settings_dir();
|
||||
String file = p_path.get_file() + "-folding-" + p_path.md5_text() + ".cfg";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue