Merge pull request #14917 from fodinabor/fix10965
Fix crash on startup when external editor cannot be found.
This commit is contained in:
commit
d91464f217
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue