diff options
| author | Scayze | 2017-09-28 23:58:45 +0200 |
|---|---|---|
| committer | Scayze | 2017-09-28 23:58:45 +0200 |
| commit | 296941f7459d2ed17523ce99806f2816d2dcc76c (patch) | |
| tree | fb1fae397dc1f0c30f92124e7590ffcb9a000c29 | |
| parent | 4f39ce32b9195405f934445b20059e86632b47f9 (diff) | |
| download | godot-296941f7459d2ed17523ce99806f2816d2dcc76c.tar.gz godot-296941f7459d2ed17523ce99806f2816d2dcc76c.tar.zst godot-296941f7459d2ed17523ce99806f2816d2dcc76c.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() { |
