From 092c0eda65eedd606ae7cbacd74445dcff496998 Mon Sep 17 00:00:00 2001 From: Jonathan Yap Date: Sat, 18 Feb 2012 08:22:59 -0500 Subject: STORM-1807 Fix possible Linux compiling issue --- indra/newview/llpreviewanim.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'indra') 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(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) -- cgit v1.2.3