Remove() public method

public Remove ( UUID animID ) : bool
animID UUID
return bool
        /// <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();
            }
        }
Esempio n. 2
0
        public void RemoveAnimation(UUID animID)
        {
            if (m_scenePresence.IsChildAgent)
            {
                return;
            }

            if (m_animations.Remove(animID))
            {
                SendAnimPack();
            }
        }