1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Misc editor speedups for large scenes

This commit is contained in:
Mike Precup
2025-08-08 12:16:14 -07:00
parent d5ad0556a2
commit e73e978d65
4 changed files with 13 additions and 3 deletions

View File

@@ -706,7 +706,12 @@ void SceneTreeEditor::_node_visibility_changed(Node *p_node) {
return;
}
TreeItem *item = _find(tree->get_root(), p_node->get_path());
TreeItem *item;
if (I->value.item && I->value.item->get_metadata(0) == p_node->get_path()) {
item = I->value.item;
} else {
item = _find(tree->get_root(), p_node->get_path());
}
if (!item) {
return;