summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-05-14 09:19:32 +0200
committerGitHub <noreply@github.com>2022-05-14 09:19:32 +0200
commit6d5d9dd82ad263ae69afc01e73e47320c1f68c04 (patch)
treead89b145b928d407e00813ca8acef97ec44ce999
parent35596e6b745483e503535617f77fd4fcf8b051b2 (diff)
parent77f23a302307cb71724818ce4f183f6375e7fef8 (diff)
downloadredot-engine-6d5d9dd82ad263ae69afc01e73e47320c1f68c04.tar.gz
Merge pull request #61016 from macjuul/mono-script-editor-fix
Fix script editor opening when external editor is configured for C#
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 3b71c85422..f31ad3a68d 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2303,7 +2303,7 @@ void EditorNode::_edit_current(bool p_skip_foreign) {
if (main_plugin) {
// Special case if use of external editor is true.
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) {
main_plugin->edit(current_obj);
}