From c1fa7592c751005cde427fc0f4bf7b683d0eefe5 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 15 Aug 2008 21:18:08 +0000 Subject: Pantis #1957 Thank you, Leaf, for a patch that implements llGetAnimationList() XEngine implementation added by myself. --- .../ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 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 09377a1..15793e4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -5502,11 +5502,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api return (double)Math.Log(val); } - public LSL_Types.list llGetAnimationList(string id) + public LSL_Types.list llGetAnimationList( string id ) { m_host.AddScriptLPS(1); - NotImplemented("llGetAnimationList"); - return new LSL_Types.list(); + + LSL_Types.list l = new LSL_Types.list(); + ScenePresence av = World.GetScenePresence(id); + if( av == null ) + return l; + LLUUID[] anims; + anims = av.GetAnimationArray(); + foreach( LLUUID foo in anims ) + l.Add( foo.ToString() ); + return l; } public void llSetParcelMusicURL(string url) -- cgit v1.1