Add some case magic and send an anim pack when an override is set

avinationmerge
Melanie Thielker 2014-09-09 20:16:02 +02:00
parent 46abe0c86d
commit 2d2823f1de
2 changed files with 2 additions and 1 deletions

View File

@ -6035,6 +6035,7 @@ namespace OpenSim.Region.Framework.Scenes
public void SetAnimationOverride(string animState, UUID animID) public void SetAnimationOverride(string animState, UUID animID)
{ {
Overrides.SetOverride(animState, animID); Overrides.SetOverride(animState, animID);
Animator.SendAnimPack();
} }
} }
} }

View File

@ -13494,7 +13494,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
foreach (KeyValuePair<string, string> kvp in MovementAnimationsForLSL) foreach (KeyValuePair<string, string> kvp in MovementAnimationsForLSL)
{ {
if (kvp.Value == animState) if (kvp.Value.ToLower() == ((string)animState).ToLower())
{ {
state = kvp.Key; state = kvp.Key;
break; break;