editor: pinned window behaviour change #1552

This commit is contained in:
Turánszki János
2026-02-16 07:58:24 +01:00
parent 99f2e4cda8
commit 30a4cdae78
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1071,7 +1071,7 @@ void AnimationWindow::SetEntity(Entity entity)
wi::scene::Scene& scene = editor->GetCurrentScene();
AnimationComponent* animation = scene.animations.GetComponent(entity);
if (animation != nullptr || (IsCollapsed() && entity == INVALID_ENTITY))
if (animation != nullptr || (IsCollapsed() && !scene.Entity_IsDescendant(entity, this->entity)))
{
this->entity = entity;
RefreshKeyframesList();