mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix crash on startup when external editor cannot be found.
Fixes #10965
This commit is contained in:
parent
f17d46d3fa
commit
6f0b2e5ee4
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue