diff options
author | Jonathan Yap <none@none> | 2012-02-18 08:22:59 -0500 |
---|---|---|
committer | Jonathan Yap <none@none> | 2012-02-18 08:22:59 -0500 |
commit | 092c0eda65eedd606ae7cbacd74445dcff496998 (patch) | |
tree | b814d7d1f74f72c1709735274aa9d37c889b3109 /indra | |
parent | 039c50f2b4831a4caad3313b3e8e1c992793ae90 (diff) |
STORM-1807 Fix possible Linux compiling issue
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpreviewanim.cpp | 10 |
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) |