diff --git a/Editor/AnimationWindow.cpp b/Editor/AnimationWindow.cpp index 9a4988395..7a6914378 100644 --- a/Editor/AnimationWindow.cpp +++ b/Editor/AnimationWindow.cpp @@ -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()) + if (animation != nullptr || (IsCollapsed() && entity == INVALID_ENTITY)) { this->entity = entity; RefreshKeyframesList(); diff --git a/Editor/ArmatureWindow.cpp b/Editor/ArmatureWindow.cpp index 365a86bc8..a40317274 100644 --- a/Editor/ArmatureWindow.cpp +++ b/Editor/ArmatureWindow.cpp @@ -219,7 +219,7 @@ void ArmatureWindow::SetEntity(Entity entity) const ArmatureComponent* armature = scene.armatures.GetComponent(entity); - if (armature != nullptr || IsCollapsed()) + if (armature != nullptr || (IsCollapsed() && entity == INVALID_ENTITY)) { this->entity = entity; RefreshBoneList(); diff --git a/Editor/HumanoidWindow.cpp b/Editor/HumanoidWindow.cpp index 4d8c1d10f..54ed0cf2f 100644 --- a/Editor/HumanoidWindow.cpp +++ b/Editor/HumanoidWindow.cpp @@ -319,7 +319,7 @@ void HumanoidWindow::SetEntity(Entity entity) ragdollCheckBox.SetCheck(humanoid->IsRagdollPhysicsEnabled()); // this is always force updated } - if (humanoid != nullptr || IsCollapsed()) + if (humanoid != nullptr || (IsCollapsed() && entity == INVALID_ENTITY)) { if (this->entity != entity) {