Fix pinning of editor component windows (#1552)
This commit is contained in:
committed by
GitHub
parent
ee2ea4331e
commit
4c667481c8
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user