summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2012-02-18 08:22:59 -0500
committerJonathan Yap <none@none>2012-02-18 08:22:59 -0500
commit092c0eda65eedd606ae7cbacd74445dcff496998 (patch)
treeb814d7d1f74f72c1709735274aa9d37c889b3109 /indra/newview
parent039c50f2b4831a4caad3313b3e8e1c992793ae90 (diff)
STORM-1807 Fix possible Linux compiling issue
Diffstat (limited to 'indra/newview')
-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)