Merge pull request #116848 from billuo/bugfix/issue-116788-crash
Fix `reload_scene_from_path` may crash
This commit is contained in:
commit
bed242666a
4 changed files with 12 additions and 13 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue