Просмотр исходного кода

fix not beeing able to open empty scripts

Scayze 8 лет назад
Родитель
Сommit
296941f745
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      editor/plugins/script_text_editor.cpp

+ 1 - 5
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() {