Fix pinning of editor component windows (#1552)

This commit is contained in:
Stanislav Denisov
2026-02-13 06:55:00 +01:00
committed by GitHub
parent ee2ea4331e
commit 4c667481c8
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())
if (animation != nullptr || (IsCollapsed() && entity == INVALID_ENTITY))
{
this->entity = entity;
RefreshKeyframesList();
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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)
{