fix not beeing able to open empty scripts
This commit is contained in:
1 parent
4f39ce32b9
commit
296941f745
1 file changed
+1
-5
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user