mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
add LSL_Integer osClearObjectAnimations() to remove all animations on a prim, returning the number it had; some clean on sending
This commit is contained in:
@@ -5688,6 +5688,24 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return false;
|
||||
}
|
||||
|
||||
public int ClearObjectAnimations()
|
||||
{
|
||||
int ret = 0;
|
||||
if(Animations != null)
|
||||
{
|
||||
ret = Animations.Count;
|
||||
Animations.Clear();
|
||||
AnimationsNames.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
Animations = new Dictionary<UUID, int>();
|
||||
AnimationsNames = new Dictionary<UUID, string>();
|
||||
}
|
||||
ScheduleUpdate(PrimUpdateFlags.Animations);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public int GetAnimations(out UUID[] ids, out int[] seqs)
|
||||
{
|
||||
ids = null;
|
||||
|
||||
Reference in New Issue
Block a user