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

Don't mark cached previously pinned AnimationMixers

AnimationPlayerEditor will hold on to pointers to no-longer existing
Nodes that were previously pinned. Make sure to not mark them as dirty
if they are not already inside the cache.

This fixes #102108
This commit is contained in:
HP van Braam
2025-02-13 17:50:59 +01:00
parent c2732ae4b6
commit 0b30ecc758
2 changed files with 23 additions and 3 deletions

View File

@@ -90,6 +90,7 @@ class SceneTreeEditor : public Control {
HashMap<Node *, CachedNode>::Iterator add(Node *p_node, TreeItem *p_item);
HashMap<Node *, CachedNode>::Iterator get(Node *p_node, bool p_deleted_ok = true);
bool has(Node *p_node);
void remove(Node *p_node, bool p_recursive = false);
void mark_dirty(Node *p_node, bool p_parents = true);
void mark_children_dirty(Node *p_node, bool p_recursive = false);