Pantis #1957
Thank you, Leaf, for a patch that implements llGetAnimationList() XEngine implementation added by myself.0.6.0-stable
parent
72b8c1af1c
commit
c1fa7592c7
|
@ -39,6 +39,7 @@ using OpenSim.Framework.Communications.Cache;
|
|||
using OpenSim.Region.Environment.Types;
|
||||
using OpenSim.Region.Physics.Manager;
|
||||
|
||||
|
||||
namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
enum ScriptControlled : int
|
||||
|
@ -1346,6 +1347,14 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
|
||||
RemoveAnimation(animID);
|
||||
}
|
||||
|
||||
public LLUUID[] GetAnimationArray()
|
||||
{
|
||||
LLUUID[] animIDs;
|
||||
int[] sequenceNums;
|
||||
m_animations.GetArrays( out animIDs, out sequenceNums );
|
||||
return animIDs;
|
||||
}
|
||||
|
||||
public void HandleStartAnim(IClientAPI remoteClient, LLUUID animID)
|
||||
{
|
||||
|
|
|
@ -5698,11 +5698,19 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue