diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-09-30 12:52:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-30 12:52:36 +0200 |
commit | 854afba672811ce9329e5b9d2cf78aa52c07745b (patch) | |
tree | a311878a395213901e94c74eee637a0c004057e7 /editor/plugins | |
parent | 670e443046b8444de4813178ca23aeb785e66b0e (diff) | |
parent | 296941f7459d2ed17523ce99806f2816d2dcc76c (diff) |
Merge pull request #11668 from scayze/open_empty_script_fix
fixed 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() { |