mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
mantis 8908: use the prim idea of running animations, (by name or by key) on llStopObjectAnimation(), ignoring the prim inventory (unlike sl?)
This commit is contained in:
@@ -4192,11 +4192,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
public void llStopObjectAnimation(string anim)
|
||||
{
|
||||
UUID animID = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, anim, AssetType.Animation);
|
||||
if (animID == UUID.Zero)
|
||||
animID = DefaultAvatarAnimations.GetDefaultAnimation(anim);
|
||||
if (animID != UUID.Zero)
|
||||
m_host.RemoveAnimation(animID);
|
||||
m_host.RemoveAnimation(anim);
|
||||
}
|
||||
|
||||
public LSL_List llGetObjectAnimationNames()
|
||||
|
||||
Reference in New Issue
Block a user