From 6703d667d618a47d2a4710efd6baefc43af16e8e Mon Sep 17 00:00:00 2001 From: Zi Ree Date: Fri, 26 Nov 2021 04:04:14 +0100 Subject: [PATCH] Make sure we see the currently running animation after changing the state dropdown --- indra/newview/ao.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/indra/newview/ao.cpp b/indra/newview/ao.cpp index b281a9f043..f7a8f3f7e3 100644 --- a/indra/newview/ao.cpp +++ b/indra/newview/ao.cpp @@ -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); + } } }