// Called from scripts public void RemoveAnimation(string name) { if (m_scenePresence.IsChildAgent) { return; } UUID animID = DefaultAvatarAnimations.GetDefaultAnimation(name); if (animID == UUID.Zero) { return; } RemoveAnimation(animID, true); }
// Called from scripts public void RemoveAnimation(string name) { 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()); if (animID == UUID.Zero) { return; } RemoveAnimation(animID, true); }
// Called from scripts public void AddAnimation(string name, UUID objectID) { if (m_scenePresence.IsChildAgent) { return; } UUID animID = DefaultAvatarAnimations.GetDefaultAnimation(name); if (animID == UUID.Zero) { return; } // m_log.DebugFormat("[SCENE PRESENCE ANIMATOR]: Adding animation {0} {1} for {2}", animID, name, m_scenePresence.Name); AddAnimation(animID, objectID); }
// Called from scripts public void AddAnimation(string name, UUID objectID) { 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()); if (animID == UUID.Zero) { return; } // m_log.DebugFormat("[SCENE PRESENCE ANIMATOR]: Adding animation {0} {1} for {2}", animID, name, m_scenePresence.Name); AddAnimation(animID, objectID); }