/// <summary> /// Remove the specified animation /// </summary> /// <param name='animID'></param> /// <param name='allowNoDefault'> /// If true, then the default animation can be entirely removed. /// If false, then removing the default animation will reset it to the simulator default (currently STAND). /// </param> public void RemoveAnimation(UUID animID, bool allowNoDefault) { if (m_scenePresence.IsChildAgent) { return; } if (m_scenePresence.Scene.DebugAnimations) { m_log.DebugFormat( "[SCENE PRESENCE ANIMATOR]: Removing animation {0} {1} for {2}", GetAnimName(animID), animID, m_scenePresence.Name); } if (m_animations.Remove(animID, allowNoDefault)) { SendAnimPack(); m_scenePresence.TriggerScenePresenceUpdated(); } }
public void RemoveAnimation(UUID animID) { if (m_scenePresence.IsChildAgent) { return; } if (m_animations.Remove(animID)) { SendAnimPack(); } }