editor: pinned window behaviour change #1552
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user