Merge pull request #94911 from yahkr/91542-fix

Fix for folding "Editable Children" nodes in Scene tree not being saved
This commit is contained in:
Rémi Verschelde 2024-08-19 14:33:58 +02:00
commit 3241b440ef
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -93,7 +93,7 @@ void EditorFolding::_fill_folds(const Node *p_root, const Node *p_node, Array &p
if (!p_node->get_owner()) {
return; //not owned, bye
}
if (p_node->get_owner() != p_root && !p_root->is_editable_instance(p_node)) {
if (p_node->get_owner() != p_root && !p_root->is_editable_instance(p_node->get_owner())) {
return;
}
}