Merge pull request #14917 from fodinabor/fix10965

Fix crash on startup when external editor cannot be found.
This commit is contained in:
Rémi Verschelde 2017-12-21 23:14:38 +01:00 committed by GitHub
commit d91464f217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -520,6 +520,8 @@ void ScriptEditor::_update_modified_scripts_for_external_editor(Ref<Script> p_fo
if (!bool(EditorSettings::get_singleton()->get("external_editor/use_external_editor")))
return;
ERR_FAIL_COND(!get_tree());
Set<Ref<Script> > scripts;
Node *base = get_tree()->get_edited_scene_root();