EditorFolding ignores hidden properties for folded resources (fixes #26663)
This commit is contained in:
parent
5772f60f96
commit
790a78273f
|
@ -112,6 +112,7 @@ void EditorFolding::_fill_folds(const Node *p_root, const Node *p_node, Array &p
|
|||
List<PropertyInfo> plist;
|
||||
p_node->get_property_list(&plist);
|
||||
for (List<PropertyInfo>::Element *E = plist.front(); E; E = E->next()) {
|
||||
if (E->get().usage & PROPERTY_USAGE_EDITOR) {
|
||||
if (E->get().type == Variant::OBJECT) {
|
||||
RES res = p_node->get(E->get().name);
|
||||
if (res.is_valid() && !resources.has(res) && res->get_path() != String() && !res->get_path().is_resource_file()) {
|
||||
|
@ -123,6 +124,7 @@ void EditorFolding::_fill_folds(const Node *p_root, const Node *p_node, Array &p
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < p_node->get_child_count(); i++) {
|
||||
_fill_folds(p_root, p_node->get_child(i), p_folds, resource_folds, resources);
|
||||
|
|
Loading…
Reference in New Issue