mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
locate default anims also by uuid, rename/chage a few things
This commit is contained in:
@@ -171,9 +171,9 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
||||
// "[ANIMATION SET]: Setting default animation {0}, sequence number {1}, object id {2}",
|
||||
// anim, sequenceNum, objectID);
|
||||
|
||||
if (DefaultAvatarAnimations.AnimsUUID.ContainsKey(anim))
|
||||
if (DefaultAvatarAnimations.AnimsUUIDbyName.TryGetValue(anim, out UUID id))
|
||||
{
|
||||
return SetDefaultAnimation(DefaultAvatarAnimations.AnimsUUID[anim], sequenceNum, objectID);
|
||||
return SetDefaultAnimation(id, sequenceNum, objectID);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user