diff options
author | Elias Rammos <rammoselias@gmail.com> | 2019-05-18 02:27:52 +0300 |
---|---|---|
committer | Elias Rammos <rammoselias@gmail.com> | 2019-05-18 14:46:45 +0300 |
commit | 20ebfefad10c706c8b18d58d502e5d1676f10734 (patch) | |
tree | 1c50e06a2021aed9be090c60ffc228ca9a162364 /editor | |
parent | ee5ba3e0974caba3e3589d2a53405ef7328dc1b1 (diff) |
minor change in scriptEdtiorPlugin ref #28943
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
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)); } } |