OpenSim.Region.Framework.Scenes.ScenePresence.SendAppearanceToOtherAgent C# (CSharp) Method

SendAppearanceToOtherAgent() public method

Send appearance data to an agent that isn't this one.
public SendAppearanceToOtherAgent ( ScenePresence avatar ) : void
avatar ScenePresence
return void
        public void SendAppearanceToOtherAgent(ScenePresence avatar)
        {
            if (LocalId == avatar.LocalId)
            {
                m_log.WarnFormat("[SCENE PRESENCE]: An agent is attempting to send appearance data to itself; {0}", UUID);
                return;
            }

// DEBUG ON
//          m_log.WarnFormat("[SP] Send appearance from {0} to {1}",m_uuid,avatar.ControllingClient.AgentId);
// DEBUG OFF

            avatar.ControllingClient.SendAppearance(
                m_appearance.Owner, m_appearance.VisualParams, m_appearance.Texture.GetBytes());
        }
ScenePresence