Merge pull request #116848 from billuo/bugfix/issue-116788-crash

Fix `reload_scene_from_path` may crash
This commit is contained in:
Thaddeus Crews 2026-03-04 11:20:41 -06:00
commit bed242666a
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
4 changed files with 12 additions and 13 deletions

View file

@ -1331,16 +1331,20 @@ void EditorSelection::_update_node_list() {
node_list_changed = false;
}
void EditorSelection::update() {
void EditorSelection::update(bool p_deferred) {
_update_node_list();
if (!changed) {
return;
}
changed = false;
if (!emitted) {
emitted = true;
callable_mp(this, &EditorSelection::_emit_change).call_deferred();
if (p_deferred) {
if (!emitted) {
emitted = true;
callable_mp(this, &EditorSelection::_emit_change).call_deferred();
}
} else {
_emit_change();
}
}