diff options
author | Scayze <manuel.strey@gmx.de> | 2017-09-28 23:58:45 +0200 |
---|---|---|
committer | Scayze <manuel.strey@gmx.de> | 2017-09-28 23:58:45 +0200 |
commit | 296941f7459d2ed17523ce99806f2816d2dcc76c (patch) | |
tree | fb1fae397dc1f0c30f92124e7590ffcb9a000c29 /editor/plugins | |
parent | 4f39ce32b9195405f934445b20059e86632b47f9 (diff) |
fix not beeing able to open empty scripts
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 47443b81ce..b66e9598f9 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1557,11 +1557,7 @@ ScriptTextEditor::ScriptTextEditor() { static ScriptEditorBase *create_editor(const Ref<Script> &p_script) { - if (p_script->has_source_code()) { - return memnew(ScriptTextEditor); - } - - return NULL; + return memnew(ScriptTextEditor); } void ScriptTextEditor::register_editor() { |