Also check standard anim names
parent
e775e1a317
commit
5376d0a97b
|
@ -13510,11 +13510,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (presence == null)
|
if (presence == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UUID animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
|
UUID animID;
|
||||||
if (animID == UUID.Zero)
|
if (animState == anim)
|
||||||
{
|
{
|
||||||
llShout(ScriptBaseClass.DEBUG_CHANNEL, "Animation not found");
|
animID = UUID.Zero;
|
||||||
return;
|
}
|
||||||
|
else if (MovementAnimationsForLSL.ContainsKey(anim))
|
||||||
|
{
|
||||||
|
animID = DefaultAvatarAnimations.AnimsUUID[MovementAnimationsForLSL[anim]];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
|
||||||
|
if (animID == UUID.Zero)
|
||||||
|
{
|
||||||
|
llShout(ScriptBaseClass.DEBUG_CHANNEL, "Animation not found");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
presence.SetAnimationOverride(state, animID);
|
presence.SetAnimationOverride(state, animID);
|
||||||
|
|
Loading…
Reference in New Issue