summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewanim.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2017-06-23 20:34:02 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2017-06-23 20:34:02 +0300
commit0c19b16266df155b4fc288c5e6671fe4382548f0 (patch)
tree6dba7970e1090ee827b73b6e2c83201f62d3b116 /indra/newview/llpreviewanim.cpp
parent891eaf76ca0d86c873d08c3c8f21400e43b7aef1 (diff)
MAINT-7065 Better information on animations running on the logged-in Avatar
Diffstat (limited to 'indra/newview/llpreviewanim.cpp')
-rw-r--r--indra/newview/llpreviewanim.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llpreviewanim.cpp b/indra/newview/llpreviewanim.cpp
index fb40af1302..12ac9e6fc5 100644
--- a/indra/newview/llpreviewanim.cpp
+++ b/indra/newview/llpreviewanim.cpp
@@ -148,6 +148,12 @@ void LLPreviewAnim::draw()
}
if(gAgentAvatarp->isMotionActive(this->mItemID) && !this->mDidStart)
{
+ const LLInventoryItem *item = getItem();
+ LLMotion* motion = gAgentAvatarp->findMotion(this->mItemID);
+ if (item && motion)
+ {
+ motion->setName(item->getName());
+ }
this->mDidStart = true;
}
}