diff options
| author | Gilles Roudiere | 2017-09-30 12:52:36 +0200 |
|---|---|---|
| committer | GitHub | 2017-09-30 12:52:36 +0200 |
| commit | 854afba672811ce9329e5b9d2cf78aa52c07745b (patch) | |
| tree | a311878a395213901e94c74eee637a0c004057e7 | |
| parent | 670e443046b8444de4813178ca23aeb785e66b0e (diff) | |
| parent | 296941f7459d2ed17523ce99806f2816d2dcc76c (diff) | |
| download | godot-854afba672811ce9329e5b9d2cf78aa52c07745b.tar.gz godot-854afba672811ce9329e5b9d2cf78aa52c07745b.tar.zst godot-854afba672811ce9329e5b9d2cf78aa52c07745b.zip | |
| -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 47443b81c..b66e9598f 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() { |
