STORM-1807 Fix possible Linux compiling issue

master
Jonathan Yap 2012-02-18 08:22:59 -05:00
parent 039c50f2b4
commit 092c0eda65
1 changed files with 8 additions and 2 deletions

View File

@ -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)