Make sure we see the currently running animation after changing the state dropdown

meow-7.2.2
Zi Ree 2021-11-26 04:04:14 +01:00
parent ce5a294581
commit 6703d667d6
1 changed files with 9 additions and 0 deletions

View File

@ -470,6 +470,15 @@ void FloaterAO::onSelectState()
if (item)
{
item->setUserdata(&mSelectedState->mAnimations[index].mInventoryUUID);
// update currently playing animation if we are looking at the currently running state in the UI
if (mSelectedSet->getMotion() == mSelectedState->mRemapID &&
mSelectedState->mCurrentAnimationID == mSelectedState->mAnimations[index].mAssetUUID)
{
mCurrentBoldItem = item;
((LLScrollListIcon*)item->getColumn(0))->setValue("FSAO_Animation_Playing");
((LLScrollListText*)item->getColumn(1))->setFontStyle(LLFontGL::BOLD);
}
}
}