Refine children cache invalidation to skip more special cases.

This commit is contained in:
Mounir Tohami
2025-09-18 18:28:59 +03:00
parent 8b4b93a82e
commit 3335708ce0
2 changed files with 10 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ private:
Node *parent = nullptr;
Node *owner = nullptr;
HashMap<StringName, Node *> children;
mutable bool children_cache_dirty = true;
mutable bool children_cache_dirty = false;
mutable LocalVector<Node *> children_cache;
HashMap<StringName, Node *> owned_unique_nodes;
bool unique_name_in_owner = false;