You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Unify usage of GLOBAL/EDITOR_GET
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user