aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 9dcdf5b..caf9fca 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -13529,13 +13529,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
13529 { 13529 {
13530 animID = UUID.Zero; 13530 animID = UUID.Zero;
13531 } 13531 }
13532 else if (MovementAnimationsForLSL.ContainsKey(anim))
13533 {
13534 animID = DefaultAvatarAnimations.AnimsUUID[MovementAnimationsForLSL[anim]];
13535 }
13536 else 13532 else
13537 { 13533 {
13538 animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation); 13534 animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
13535
13536 if (animID == UUID.Zero)
13537 {
13538 String animupper = ((string)anim).ToUpperInvariant();
13539 DefaultAvatarAnimations.AnimsUUID.TryGetValue(animupper, out animID);
13540 }
13541
13539 if (animID == UUID.Zero) 13542 if (animID == UUID.Zero)
13540 { 13543 {
13541 llShout(ScriptBaseClass.DEBUG_CHANNEL, "Animation not found"); 13544 llShout(ScriptBaseClass.DEBUG_CHANNEL, "Animation not found");