mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
Pantis #1957
Thank you, Leaf, for a patch that implements llGetAnimationList() XEngine implementation added by myself.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user