remove the check animState == anim for same reasons

avinationmerge
UbitUmarov 2014-09-09 23:30:31 +01:00
parent 4842806ea8
commit 13cb6ef6ef
1 changed files with 10 additions and 16 deletions

View File

@ -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);
} }