summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-20 11:22:47 +0200
committerGitHub <noreply@github.com>2019-05-20 11:22:47 +0200
commitfead547ba537e08b94d7a4c74714354ebd61d0cc (patch)
tree53fab3dd5ff130027e0e741fd0c8de983f0c9969 /editor
parenta940b4cf640930b2decb356d395ac4cd89beefaf (diff)
parent20ebfefad10c706c8b18d58d502e5d1676f10734 (diff)
Merge pull request #28972 from erammos/28943_script_editor_plugin
minor change in scriptEdtiorPlugin ref #28943
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/script_editor_plugin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 92579e5cef..828abef9a9 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -3305,9 +3305,7 @@ void ScriptEditorPlugin::edit(Object *p_object) {
} else {
script_editor->edit(p_script);
}
- }
-
- if (Object::cast_to<TextFile>(p_object)) {
+ } else if (Object::cast_to<TextFile>(p_object)) {
script_editor->edit(Object::cast_to<TextFile>(p_object));
}
}