Merge pull request #11668 from scayze/open_empty_script_fix

fixed not beeing able to open empty scripts
This commit is contained in:
Gilles Roudiere 2017-09-30 12:52:36 +02:00 committed by GitHub
commit 854afba672
1 changed files with 1 additions and 5 deletions

View File

@ -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() {