* minor: appearance related doc and log message tweaking

0.6.0-stable
Justin Clarke Casey 2008-11-04 18:29:37 +00:00
parent 1c2a0c78d9
commit 5330838b15
1 changed files with 11 additions and 5 deletions

View File

@ -1929,18 +1929,24 @@ namespace OpenSim.Region.Environment.Scenes
m_scene.AddAgentTime(System.Environment.TickCount - m_perfMonMS); m_scene.AddAgentTime(System.Environment.TickCount - m_perfMonMS);
} }
/// <summary>
/// Send appearance data to an agent that isn't this one.
/// </summary>
/// <param name="avatar"></param>
public void SendAppearanceToOtherAgent(ScenePresence avatar) public void SendAppearanceToOtherAgent(ScenePresence avatar)
{ {
avatar.ControllingClient.SendAppearance( avatar.ControllingClient.SendAppearance(
m_appearance.Owner, m_appearance.Owner, m_appearance.VisualParams, m_appearance.Texture.ToBytes());
m_appearance.VisualParams,
m_appearance.Texture.ToBytes()
);
} }
/// <summary>
/// Set appearance data (textureentry and slider settings) received from the client
/// </summary>
/// <param name="texture"></param>
/// <param name="visualParam"></param>
public void SetAppearance(byte[] texture, List<byte> visualParam) public void SetAppearance(byte[] texture, List<byte> visualParam)
{ {
m_log.DebugFormat("[APPEARANCE]: Setting appearance for {0}", Name); m_log.DebugFormat("[APPEARANCE]: Receiving appearance for {0}", Name);
m_appearance.SetAppearance(texture, visualParam); m_appearance.SetAppearance(texture, visualParam);
SetHeight(m_appearance.AvatarHeight); SetHeight(m_appearance.AvatarHeight);