move the ToUpper to where it belongs
parent
239c07ed9d
commit
06bdfc48d0
|
@ -94,7 +94,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
|||
// m_log.DebugFormat(
|
||||
// "[AVATAR ANIMATIONS]: Looking for default avatar animation with name {0}", name);
|
||||
UUID id;
|
||||
if (AnimsUUIDbyName.TryGetValue(name, out id))
|
||||
if (AnimsUUIDbyName.TryGetValue(name.ToUpper(), out id))
|
||||
{
|
||||
// m_log.DebugFormat(
|
||||
// "[AVATAR ANIMATIONS]: Found {0} {1} in GetDefaultAvatarAnimation()", AnimsUUID[name], name);
|
||||
|
|
|
@ -107,9 +107,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
|||
if (m_scenePresence.IsChildAgent)
|
||||
return;
|
||||
|
||||
// XXX: For some reason, we store all animations and use them with upper case names, but in LSL animations
|
||||
// are referenced with lower case names!
|
||||
UUID animID = DefaultAvatarAnimations.GetDefaultAnimation(name.ToUpper());
|
||||
UUID animID = DefaultAvatarAnimations.GetDefaultAnimation(name);
|
||||
if (animID == UUID.Zero)
|
||||
return;
|
||||
|
||||
|
@ -165,9 +163,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
|||
if (m_scenePresence.IsChildAgent)
|
||||
return;
|
||||
|
||||
// XXX: For some reason, we store all animations and use them with upper case names, but in LSL animations
|
||||
// are referenced with lower case names!
|
||||
UUID animID = DefaultAvatarAnimations.GetDefaultAnimation(name.ToUpper());
|
||||
UUID animID = DefaultAvatarAnimations.GetDefaultAnimation(name);
|
||||
if (animID == UUID.Zero)
|
||||
return;
|
||||
|
||||
|
|
|
@ -4195,7 +4195,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
// Do NOT try to parse UUID, animations cannot be triggered by ID
|
||||
UUID animID = ScriptUtils.GetAssetIdFromItemName(m_host, anim, (int)AssetType.Animation);
|
||||
if (animID == UUID.Zero)
|
||||
animID = DefaultAvatarAnimations.GetDefaultAnimation(anim.ToUpper());
|
||||
animID = DefaultAvatarAnimations.GetDefaultAnimation(anim);
|
||||
if (animID != UUID.Zero)
|
||||
m_host.AddAnimation(animID, anim);
|
||||
}
|
||||
|
@ -4205,7 +4205,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
m_host.AddScriptLPS(1);
|
||||
UUID animID = ScriptUtils.GetAssetIdFromKeyOrItemName(m_host, anim, AssetType.Animation);
|
||||
if (animID == UUID.Zero)
|
||||
animID = DefaultAvatarAnimations.GetDefaultAnimation(anim.ToUpper());
|
||||
animID = DefaultAvatarAnimations.GetDefaultAnimation(anim);
|
||||
if (animID != UUID.Zero)
|
||||
m_host.RemoveAnimation(animID);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue