Merge pull request #61016 from macjuul/mono-script-editor-fix
Fix script editor opening when external editor is configured for C#
This commit is contained in:
commit
6d5d9dd82a
1 changed files with 1 additions and 1 deletions
|
@ -2303,7 +2303,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) {
|
||||||
if (main_plugin) {
|
if (main_plugin) {
|
||||||
// Special case if use of external editor is true.
|
// Special case if use of external editor is true.
|
||||||
Resource *current_res = Object::cast_to<Resource>(current_obj);
|
Resource *current_res = Object::cast_to<Resource>(current_obj);
|
||||||
if (main_plugin->get_name() == "Script" && current_obj->is_class("VisualScript") && current_res && !current_res->is_built_in() && (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor")) || overrides_external_editor(current_obj))) {
|
if (main_plugin->get_name() == "Script" && !current_obj->is_class("VisualScript") && current_res && !current_res->is_built_in() && (bool(EditorSettings::get_singleton()->get("text_editor/external/use_external_editor")) || overrides_external_editor(current_obj))) {
|
||||||
if (!changing_scene) {
|
if (!changing_scene) {
|
||||||
main_plugin->edit(current_obj);
|
main_plugin->edit(current_obj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue