remove the check animState == anim for same reasons
parent
4842806ea8
commit
13cb6ef6ef
|
@ -13525,12 +13525,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
return;
|
return;
|
||||||
|
|
||||||
UUID animID;
|
UUID animID;
|
||||||
if (animState == anim)
|
|
||||||
{
|
|
||||||
animID = UUID.Zero;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
|
animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
|
||||||
|
|
||||||
if (animID == UUID.Zero)
|
if (animID == UUID.Zero)
|
||||||
|
@ -13544,7 +13539,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
llShout(ScriptBaseClass.DEBUG_CHANNEL, "Animation not found");
|
llShout(ScriptBaseClass.DEBUG_CHANNEL, "Animation not found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
presence.SetAnimationOverride(state, animID);
|
presence.SetAnimationOverride(state, animID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue