From 8f3c5dbe5c072b540ae446ddf57bf654c9f135d6 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 5 Nov 2008 15:26:10 +0000 Subject: * Apply second patch in http://opensimulator.org/mantis/view.php?id=2561 * Inserts proper animation state names into data/avataranimations.xml file so that llGetAnimation() works as one would expect. * Thanks StrawberryFride! --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 778cf9f..eefb8e6 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3486,14 +3486,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api ScenePresence presence = World.GetScenePresence(avatar); if (m_host.RegionHandle == presence.RegionHandle) { - Dictionary animationNames = AnimationSet.Animations.AnimsNames; + Dictionary animationstateNames = AnimationSet.Animations.AnimStateNames; if (presence != null) { AnimationSet currentAnims = presence.Animations; - string currentAnimation = String.Empty; - if (animationNames.TryGetValue(currentAnims.DefaultAnimation.AnimID, out currentAnimation)) - return currentAnimation; + string currentAnimationState = String.Empty; + if (animationstateNames.TryGetValue(currentAnims.DefaultAnimation.AnimID, out currentAnimationState)) + return currentAnimationState; } } return String.Empty; -- cgit v1.1