Merge pull request #55525 from and-rad/expand-tree-crash-fix

This commit is contained in:
Rémi Verschelde 2021-12-02 00:20:24 +01:00 committed by GitHub
commit 702ffc6243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -419,6 +419,9 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
if (!selected_item) {
selected_item = tree->get_root();
if (!selected_item) {
break;
}
}
bool collapsed = _is_collapsed_recursive(selected_item);