summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpreviewanim.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llpreviewanim.cpp b/indra/newview/llpreviewanim.cpp
index dcb8bca512..35ac0537a3 100644
--- a/indra/newview/llpreviewanim.cpp
+++ b/indra/newview/llpreviewanim.cpp
@@ -103,8 +103,14 @@ void LLPreviewAnim::play(const LLSD& param)
if (getChild<LLUICtrl>(btn_name)->getValue().asBoolean() )
{
- "Inworld" == btn_name ? gAgent.sendAnimationRequest(itemID, ANIM_REQUEST_START) :
- gAgentAvatarp->startMotion(item->getAssetUUID());
+ if("Inworld" == btn_name)
+ {
+ gAgent.sendAnimationRequest(itemID, ANIM_REQUEST_START);
+ }
+ else
+ {
+ gAgentAvatarp->startMotion(item->getAssetUUID());
+ }
LLMotion* motion = gAgentAvatarp->findMotion(itemID);
if (motion)