mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Get osNpcCreate appearance working with avatars that are currently in the scene.
Had to stop using AvatarService for now since it doesn't store baked texture IDs (which is why this was failing). Also failing because cloning appearance was also cloning the AvatarApperance.Owner field, which we weren't then changing. Extended TestCreate() to check this.
This commit is contained in:
@@ -2647,7 +2647,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="avatar"></param>
|
||||
public void SendAppearanceToAgent(ScenePresence avatar)
|
||||
{
|
||||
// m_log.WarnFormat("[SP] Send appearance from {0} to {1}",m_uuid,avatar.ControllingClient.AgentId);
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE PRESENCE] Send appearance from {0} {1} to {2} {3}", Name, m_uuid, avatar.Name, avatar.UUID);
|
||||
|
||||
avatar.ControllingClient.SendAppearance(
|
||||
m_appearance.Owner, m_appearance.VisualParams, m_appearance.Texture.GetBytes());
|
||||
@@ -2659,7 +2660,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public AvatarAppearance Appearance
|
||||
{
|
||||
get { return m_appearance; }
|
||||
set { m_appearance = value; }
|
||||
set
|
||||
{
|
||||
m_appearance = value;
|
||||
// m_log.DebugFormat("[SCENE PRESENCE]: Set appearance for {0} to {1}", Name, value);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user