mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
parent
28a4eec9a7
commit
e48c5daddf
113 changed files with 528 additions and 528 deletions
|
@ -227,7 +227,7 @@ void InspectorDock::_load_resource(const String &p_type) {
|
|||
load_resource_dialog->add_filter("*." + extensions[i], extensions[i].to_upper());
|
||||
}
|
||||
|
||||
const Vector<String> textfile_ext = ((String)(EditorSettings::get_singleton()->get("docks/filesystem/textfile_extensions"))).split(",", false);
|
||||
const Vector<String> textfile_ext = ((String)(EDITOR_GET("docks/filesystem/textfile_extensions"))).split(",", false);
|
||||
for (int i = 0; i < textfile_ext.size(); i++) {
|
||||
load_resource_dialog->add_filter("*." + textfile_ext[i], textfile_ext[i].to_upper());
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ void InspectorDock::_resource_file_selected(String p_file) {
|
|||
if (ResourceLoader::exists(p_file, "")) {
|
||||
res = ResourceLoader::load(p_file);
|
||||
} else {
|
||||
const Vector<String> textfile_ext = ((String)(EditorSettings::get_singleton()->get("docks/filesystem/textfile_extensions"))).split(",", false);
|
||||
const Vector<String> textfile_ext = ((String)(EDITOR_GET("docks/filesystem/textfile_extensions"))).split(",", false);
|
||||
if (textfile_ext.has(p_file.get_extension())) {
|
||||
res = ScriptEditor::get_singleton()->open_file(p_file);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue