diff options
Diffstat (limited to 'OpenSim')
15 files changed, 38 insertions, 53 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs index 0188eb7..3cda984 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs | |||
@@ -488,11 +488,11 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
488 | rdata.userAppearance.AvatarHeight = (float) Convert.ToDouble(xml.Value); | 488 | rdata.userAppearance.AvatarHeight = (float) Convert.ToDouble(xml.Value); |
489 | indata = true; | 489 | indata = true; |
490 | } | 490 | } |
491 | if (xml.MoveToAttribute("Owner")) | 491 | // if (xml.MoveToAttribute("Owner")) |
492 | { | 492 | // { |
493 | rdata.userAppearance.Owner = (UUID)xml.Value; | 493 | // rdata.userAppearance.Owner = (UUID)xml.Value; |
494 | indata = true; | 494 | // indata = true; |
495 | } | 495 | // } |
496 | if (xml.MoveToAttribute("Serial")) | 496 | if (xml.MoveToAttribute("Serial")) |
497 | { | 497 | { |
498 | rdata.userAppearance.Serial = Convert.ToInt32(xml.Value); | 498 | rdata.userAppearance.Serial = Convert.ToInt32(xml.Value); |
@@ -747,8 +747,8 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
747 | rdata.writer.WriteStartElement("Appearance"); | 747 | rdata.writer.WriteStartElement("Appearance"); |
748 | 748 | ||
749 | rdata.writer.WriteAttributeString("Height", rdata.userAppearance.AvatarHeight.ToString()); | 749 | rdata.writer.WriteAttributeString("Height", rdata.userAppearance.AvatarHeight.ToString()); |
750 | if (rdata.userAppearance.Owner != UUID.Zero) | 750 | // if (rdata.userAppearance.Owner != UUID.Zero) |
751 | rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString()); | 751 | // rdata.writer.WriteAttributeString("Owner", rdata.userAppearance.Owner.ToString()); |
752 | rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString()); | 752 | rdata.writer.WriteAttributeString("Serial", rdata.userAppearance.Serial.ToString()); |
753 | 753 | ||
754 | /* | 754 | /* |
diff --git a/OpenSim/Framework/AgentCircuitData.cs b/OpenSim/Framework/AgentCircuitData.cs index 125910e..12c8ac0 100644 --- a/OpenSim/Framework/AgentCircuitData.cs +++ b/OpenSim/Framework/AgentCircuitData.cs | |||
@@ -296,11 +296,12 @@ namespace OpenSim.Framework | |||
296 | if (args["start_pos"] != null) | 296 | if (args["start_pos"] != null) |
297 | Vector3.TryParse(args["start_pos"].AsString(), out startpos); | 297 | Vector3.TryParse(args["start_pos"].AsString(), out startpos); |
298 | 298 | ||
299 | m_log.InfoFormat("[AGENTCIRCUITDATA] agentid={0}, child={1}, startpos={2}",AgentID,child,startpos.ToString()); | 299 | m_log.InfoFormat("[AGENTCIRCUITDATA]: agentid={0}, child={1}, startpos={2}", AgentID, child, startpos); |
300 | 300 | ||
301 | try { | 301 | try |
302 | { | ||
302 | // Unpack various appearance elements | 303 | // Unpack various appearance elements |
303 | Appearance = new AvatarAppearance(AgentID); | 304 | Appearance = new AvatarAppearance(); |
304 | 305 | ||
305 | // Eventually this code should be deprecated, use full appearance | 306 | // Eventually this code should be deprecated, use full appearance |
306 | // packing in packed_appearance | 307 | // packing in packed_appearance |
@@ -313,7 +314,9 @@ namespace OpenSim.Framework | |||
313 | m_log.InfoFormat("[AGENTCIRCUITDATA] unpacked appearance"); | 314 | m_log.InfoFormat("[AGENTCIRCUITDATA] unpacked appearance"); |
314 | } | 315 | } |
315 | else | 316 | else |
316 | m_log.Warn("[AGENTCIRCUITDATA] failed to find a valid packed_appearance"); | 317 | { |
318 | m_log.Warn("[AGENTCIRCUITDATA]: failed to find a valid packed_appearance"); | ||
319 | } | ||
317 | } | 320 | } |
318 | catch (Exception e) | 321 | catch (Exception e) |
319 | { | 322 | { |
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs index 6b1f58a..73b068d 100644 --- a/OpenSim/Framework/AvatarAppearance.cs +++ b/OpenSim/Framework/AvatarAppearance.cs | |||
@@ -47,7 +47,6 @@ namespace OpenSim.Framework | |||
47 | public readonly static int TEXTURE_COUNT = 21; | 47 | public readonly static int TEXTURE_COUNT = 21; |
48 | public readonly static byte[] BAKE_INDICES = new byte[] { 8, 9, 10, 11, 19, 20 }; | 48 | public readonly static byte[] BAKE_INDICES = new byte[] { 8, 9, 10, 11, 19, 20 }; |
49 | 49 | ||
50 | protected UUID m_owner; | ||
51 | protected int m_serial = 0; | 50 | protected int m_serial = 0; |
52 | protected byte[] m_visualparams; | 51 | protected byte[] m_visualparams; |
53 | protected Primitive.TextureEntry m_texture; | 52 | protected Primitive.TextureEntry m_texture; |
@@ -56,12 +55,6 @@ namespace OpenSim.Framework | |||
56 | protected float m_avatarHeight = 0; | 55 | protected float m_avatarHeight = 0; |
57 | protected float m_hipOffset = 0; | 56 | protected float m_hipOffset = 0; |
58 | 57 | ||
59 | public virtual UUID Owner | ||
60 | { | ||
61 | get { return m_owner; } | ||
62 | set { m_owner = value; } | ||
63 | } | ||
64 | |||
65 | public virtual int Serial | 58 | public virtual int Serial |
66 | { | 59 | { |
67 | get { return m_serial; } | 60 | get { return m_serial; } |
@@ -101,38 +94,31 @@ namespace OpenSim.Framework | |||
101 | get { return m_hipOffset; } | 94 | get { return m_hipOffset; } |
102 | } | 95 | } |
103 | 96 | ||
104 | public AvatarAppearance() : this(UUID.Zero) {} | 97 | public AvatarAppearance() |
105 | |||
106 | public AvatarAppearance(UUID owner) | ||
107 | { | 98 | { |
108 | // m_log.WarnFormat("[AVATAR APPEARANCE]: create empty appearance for {0}",owner); | 99 | // m_log.WarnFormat("[AVATAR APPEARANCE]: create empty appearance"); |
109 | 100 | ||
110 | m_serial = 0; | 101 | m_serial = 0; |
111 | m_owner = owner; | ||
112 | |||
113 | SetDefaultWearables(); | 102 | SetDefaultWearables(); |
114 | SetDefaultTexture(); | 103 | SetDefaultTexture(); |
115 | SetDefaultParams(); | 104 | SetDefaultParams(); |
116 | SetHeight(); | 105 | SetHeight(); |
117 | |||
118 | m_attachments = new Dictionary<int, List<AvatarAttachment>>(); | 106 | m_attachments = new Dictionary<int, List<AvatarAttachment>>(); |
119 | } | 107 | } |
120 | 108 | ||
121 | public AvatarAppearance(UUID avatarID, OSDMap map) | 109 | public AvatarAppearance(OSDMap map) |
122 | { | 110 | { |
123 | // m_log.WarnFormat("[AVATAR APPEARANCE]: create appearance for {0} from OSDMap",avatarID); | 111 | // m_log.WarnFormat("[AVATAR APPEARANCE]: create appearance from OSDMap"); |
124 | 112 | ||
125 | m_owner = avatarID; | ||
126 | Unpack(map); | 113 | Unpack(map); |
127 | SetHeight(); | 114 | SetHeight(); |
128 | } | 115 | } |
129 | 116 | ||
130 | public AvatarAppearance(UUID avatarID, AvatarWearable[] wearables, Primitive.TextureEntry textureEntry, byte[] visualParams) | 117 | public AvatarAppearance(AvatarWearable[] wearables, Primitive.TextureEntry textureEntry, byte[] visualParams) |
131 | { | 118 | { |
132 | // m_log.WarnFormat("[AVATAR APPEARANCE] create initialized appearance for {0}",avatarID); | 119 | // m_log.WarnFormat("[AVATAR APPEARANCE] create initialized appearance"); |
133 | 120 | ||
134 | m_serial = 0; | 121 | m_serial = 0; |
135 | m_owner = avatarID; | ||
136 | 122 | ||
137 | if (wearables != null) | 123 | if (wearables != null) |
138 | m_wearables = wearables; | 124 | m_wearables = wearables; |
@@ -165,24 +151,21 @@ namespace OpenSim.Framework | |||
165 | if (appearance == null) | 151 | if (appearance == null) |
166 | { | 152 | { |
167 | m_serial = 0; | 153 | m_serial = 0; |
168 | m_owner = UUID.Zero; | ||
169 | |||
170 | SetDefaultWearables(); | 154 | SetDefaultWearables(); |
171 | SetDefaultTexture(); | 155 | SetDefaultTexture(); |
172 | SetDefaultParams(); | 156 | SetDefaultParams(); |
173 | SetHeight(); | 157 | SetHeight(); |
174 | |||
175 | m_attachments = new Dictionary<int, List<AvatarAttachment>>(); | 158 | m_attachments = new Dictionary<int, List<AvatarAttachment>>(); |
176 | 159 | ||
177 | return; | 160 | return; |
178 | } | 161 | } |
179 | 162 | ||
180 | m_serial = appearance.Serial; | 163 | m_serial = appearance.Serial; |
181 | m_owner = appearance.Owner; | ||
182 | 164 | ||
183 | m_wearables = new AvatarWearable[AvatarWearable.MAX_WEARABLES]; | 165 | m_wearables = new AvatarWearable[AvatarWearable.MAX_WEARABLES]; |
184 | for (int i = 0; i < AvatarWearable.MAX_WEARABLES; i++) | 166 | for (int i = 0; i < AvatarWearable.MAX_WEARABLES; i++) |
185 | m_wearables[i] = new AvatarWearable(); | 167 | m_wearables[i] = new AvatarWearable(); |
168 | |||
186 | if (copyWearables && (appearance.Wearables != null)) | 169 | if (copyWearables && (appearance.Wearables != null)) |
187 | { | 170 | { |
188 | for (int i = 0; i < AvatarWearable.MAX_WEARABLES; i++) | 171 | for (int i = 0; i < AvatarWearable.MAX_WEARABLES; i++) |
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs index 710a57d..613db1c 100644 --- a/OpenSim/Framework/ChildAgentDataUpdate.cs +++ b/OpenSim/Framework/ChildAgentDataUpdate.cs | |||
@@ -593,7 +593,7 @@ namespace OpenSim.Framework | |||
593 | // AgentTextures[i++] = o.AsUUID(); | 593 | // AgentTextures[i++] = o.AsUUID(); |
594 | //} | 594 | //} |
595 | 595 | ||
596 | Appearance = new AvatarAppearance(AgentID); | 596 | Appearance = new AvatarAppearance(); |
597 | 597 | ||
598 | // The code to unpack textures, visuals, wearables and attachments | 598 | // The code to unpack textures, visuals, wearables and attachments |
599 | // should be removed; packed appearance contains the full appearance | 599 | // should be removed; packed appearance contains the full appearance |
@@ -635,7 +635,7 @@ namespace OpenSim.Framework | |||
635 | // end of code to remove | 635 | // end of code to remove |
636 | 636 | ||
637 | if (args.ContainsKey("packed_appearance") && (args["packed_appearance"]).Type == OSDType.Map) | 637 | if (args.ContainsKey("packed_appearance") && (args["packed_appearance"]).Type == OSDType.Map) |
638 | Appearance = new AvatarAppearance(AgentID,(OSDMap)args["packed_appearance"]); | 638 | Appearance = new AvatarAppearance((OSDMap)args["packed_appearance"]); |
639 | else | 639 | else |
640 | m_log.WarnFormat("[CHILDAGENTDATAUPDATE] No packed appearance"); | 640 | m_log.WarnFormat("[CHILDAGENTDATAUPDATE] No packed appearance"); |
641 | 641 | ||
diff --git a/OpenSim/Framework/Tests/AgentCircuitDataTest.cs b/OpenSim/Framework/Tests/AgentCircuitDataTest.cs index 05d8469..0dce414 100644 --- a/OpenSim/Framework/Tests/AgentCircuitDataTest.cs +++ b/OpenSim/Framework/Tests/AgentCircuitDataTest.cs | |||
@@ -64,7 +64,7 @@ namespace OpenSim.Framework.Tests | |||
64 | SecureSessionId = UUID.Random(); | 64 | SecureSessionId = UUID.Random(); |
65 | SessionId = UUID.Random(); | 65 | SessionId = UUID.Random(); |
66 | 66 | ||
67 | AvAppearance = new AvatarAppearance(AgentId); | 67 | AvAppearance = new AvatarAppearance(); |
68 | VisualParams = new byte[218]; | 68 | VisualParams = new byte[218]; |
69 | 69 | ||
70 | //body | 70 | //body |
diff --git a/OpenSim/Framework/Tests/AgentCircuitManagerTests.cs b/OpenSim/Framework/Tests/AgentCircuitManagerTests.cs index 6c98897..9615f1b 100644 --- a/OpenSim/Framework/Tests/AgentCircuitManagerTests.cs +++ b/OpenSim/Framework/Tests/AgentCircuitManagerTests.cs | |||
@@ -68,7 +68,7 @@ namespace OpenSim.Framework.Tests | |||
68 | 68 | ||
69 | m_agentCircuitData1 = new AgentCircuitData(); | 69 | m_agentCircuitData1 = new AgentCircuitData(); |
70 | m_agentCircuitData1.AgentID = AgentId1; | 70 | m_agentCircuitData1.AgentID = AgentId1; |
71 | m_agentCircuitData1.Appearance = new AvatarAppearance(AgentId1); | 71 | m_agentCircuitData1.Appearance = new AvatarAppearance(); |
72 | m_agentCircuitData1.BaseFolder = BaseFolder; | 72 | m_agentCircuitData1.BaseFolder = BaseFolder; |
73 | m_agentCircuitData1.CapsPath = CapsPath; | 73 | m_agentCircuitData1.CapsPath = CapsPath; |
74 | m_agentCircuitData1.child = false; | 74 | m_agentCircuitData1.child = false; |
@@ -83,7 +83,7 @@ namespace OpenSim.Framework.Tests | |||
83 | 83 | ||
84 | m_agentCircuitData2 = new AgentCircuitData(); | 84 | m_agentCircuitData2 = new AgentCircuitData(); |
85 | m_agentCircuitData2.AgentID = AgentId2; | 85 | m_agentCircuitData2.AgentID = AgentId2; |
86 | m_agentCircuitData2.Appearance = new AvatarAppearance(AgentId2); | 86 | m_agentCircuitData2.Appearance = new AvatarAppearance(); |
87 | m_agentCircuitData2.BaseFolder = BaseFolder; | 87 | m_agentCircuitData2.BaseFolder = BaseFolder; |
88 | m_agentCircuitData2.CapsPath = CapsPath; | 88 | m_agentCircuitData2.CapsPath = CapsPath; |
89 | m_agentCircuitData2.child = false; | 89 | m_agentCircuitData2.child = false; |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index b84c3d5..b3b6cbc 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3079,7 +3079,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3079 | if (aCircuit == null) | 3079 | if (aCircuit == null) |
3080 | { | 3080 | { |
3081 | m_log.DebugFormat("[APPEARANCE] Client did not supply a circuit. Non-Linden? Creating default appearance."); | 3081 | m_log.DebugFormat("[APPEARANCE] Client did not supply a circuit. Non-Linden? Creating default appearance."); |
3082 | appearance = new AvatarAppearance(client.AgentId); | 3082 | appearance = new AvatarAppearance(); |
3083 | return; | 3083 | return; |
3084 | } | 3084 | } |
3085 | 3085 | ||
@@ -3087,7 +3087,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3087 | if (appearance == null) | 3087 | if (appearance == null) |
3088 | { | 3088 | { |
3089 | m_log.DebugFormat("[APPEARANCE]: Appearance not found in {0}, returning default", RegionInfo.RegionName); | 3089 | m_log.DebugFormat("[APPEARANCE]: Appearance not found in {0}, returning default", RegionInfo.RegionName); |
3090 | appearance = new AvatarAppearance(client.AgentId); | 3090 | appearance = new AvatarAppearance(); |
3091 | } | 3091 | } |
3092 | } | 3092 | } |
3093 | 3093 | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 1e121d9..4739f5b 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -916,7 +916,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
916 | { | 916 | { |
917 | m_log.ErrorFormat("[SCENE PRESENCE]: null appearance in MakeRoot in {0}", Scene.RegionInfo.RegionName); | 917 | m_log.ErrorFormat("[SCENE PRESENCE]: null appearance in MakeRoot in {0}", Scene.RegionInfo.RegionName); |
918 | // emergency; this really shouldn't happen | 918 | // emergency; this really shouldn't happen |
919 | m_appearance = new AvatarAppearance(UUID); | 919 | m_appearance = new AvatarAppearance(); |
920 | } | 920 | } |
921 | 921 | ||
922 | AddToPhysicalScene(isFlying); | 922 | AddToPhysicalScene(isFlying); |
@@ -2651,7 +2651,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2651 | // "[SCENE PRESENCE] Send appearance from {0} {1} to {2} {3}", Name, m_uuid, avatar.Name, avatar.UUID); | 2651 | // "[SCENE PRESENCE] Send appearance from {0} {1} to {2} {3}", Name, m_uuid, avatar.Name, avatar.UUID); |
2652 | 2652 | ||
2653 | avatar.ControllingClient.SendAppearance( | 2653 | avatar.ControllingClient.SendAppearance( |
2654 | m_appearance.Owner, m_appearance.VisualParams, m_appearance.Texture.GetBytes()); | 2654 | UUID, m_appearance.VisualParams, m_appearance.Texture.GetBytes()); |
2655 | } | 2655 | } |
2656 | 2656 | ||
2657 | // Because appearance setting is in a module, we actually need | 2657 | // Because appearance setting is in a module, we actually need |
diff --git a/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs b/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs index d49face..a25e034 100644 --- a/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs +++ b/OpenSim/Region/OptionalModules/Framework/Monitoring/MonitorServicesModule.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.OptionalModules.Framework.Monitoring | |||
47 | { | 47 | { |
48 | protected Scene m_scene; | 48 | protected Scene m_scene; |
49 | 49 | ||
50 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 50 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
51 | 51 | ||
52 | public string Name { get { return "Services Health Monitoring Module"; } } | 52 | public string Name { get { return "Services Health Monitoring Module"; } } |
53 | 53 | ||
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index 64f82c9..6286dc8 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -93,7 +93,6 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
93 | 93 | ||
94 | AvatarAppearance originalAppearance = GetAppearance(cloneAppearanceFrom, scene); | 94 | AvatarAppearance originalAppearance = GetAppearance(cloneAppearanceFrom, scene); |
95 | AvatarAppearance npcAppearance = new AvatarAppearance(originalAppearance, true); | 95 | AvatarAppearance npcAppearance = new AvatarAppearance(originalAppearance, true); |
96 | npcAppearance.Owner = acd.AgentID; | ||
97 | acd.Appearance = npcAppearance; | 96 | acd.Appearance = npcAppearance; |
98 | 97 | ||
99 | // for (int i = 0; i < acd.Appearance.Texture.FaceTextures.Length; i++) | 98 | // for (int i = 0; i < acd.Appearance.Texture.FaceTextures.Length; i++) |
diff --git a/OpenSim/Services/AvatarService/AvatarService.cs b/OpenSim/Services/AvatarService/AvatarService.cs index c4c7cad..c59a9e0 100644 --- a/OpenSim/Services/AvatarService/AvatarService.cs +++ b/OpenSim/Services/AvatarService/AvatarService.cs | |||
@@ -54,7 +54,7 @@ namespace OpenSim.Services.AvatarService | |||
54 | public AvatarAppearance GetAppearance(UUID principalID) | 54 | public AvatarAppearance GetAppearance(UUID principalID) |
55 | { | 55 | { |
56 | AvatarData avatar = GetAvatar(principalID); | 56 | AvatarData avatar = GetAvatar(principalID); |
57 | return avatar.ToAvatarAppearance(principalID); | 57 | return avatar.ToAvatarAppearance(); |
58 | } | 58 | } |
59 | 59 | ||
60 | public bool SetAppearance(UUID principalID, AvatarAppearance appearance) | 60 | public bool SetAppearance(UUID principalID, AvatarAppearance appearance) |
diff --git a/OpenSim/Services/Connectors/Avatar/AvatarServiceConnector.cs b/OpenSim/Services/Connectors/Avatar/AvatarServiceConnector.cs index 1a93ae7..8fdb4d0 100644 --- a/OpenSim/Services/Connectors/Avatar/AvatarServiceConnector.cs +++ b/OpenSim/Services/Connectors/Avatar/AvatarServiceConnector.cs | |||
@@ -89,7 +89,7 @@ namespace OpenSim.Services.Connectors | |||
89 | public AvatarAppearance GetAppearance(UUID userID) | 89 | public AvatarAppearance GetAppearance(UUID userID) |
90 | { | 90 | { |
91 | AvatarData avatar = GetAvatar(userID); | 91 | AvatarData avatar = GetAvatar(userID); |
92 | return avatar.ToAvatarAppearance(userID); | 92 | return avatar.ToAvatarAppearance(); |
93 | } | 93 | } |
94 | 94 | ||
95 | public bool SetAppearance(UUID userID, AvatarAppearance appearance) | 95 | public bool SetAppearance(UUID userID, AvatarAppearance appearance) |
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs index 810399c..360f0dd 100644 --- a/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs +++ b/OpenSim/Services/Connectors/SimianGrid/SimianAvatarServiceConnector.cs | |||
@@ -213,7 +213,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
213 | wearables[11] = new AvatarWearable(map["UnderpantsItem"].AsUUID(), map["UnderpantsAsset"].AsUUID()); | 213 | wearables[11] = new AvatarWearable(map["UnderpantsItem"].AsUUID(), map["UnderpantsAsset"].AsUUID()); |
214 | wearables[12] = new AvatarWearable(map["SkirtItem"].AsUUID(), map["SkirtAsset"].AsUUID()); | 214 | wearables[12] = new AvatarWearable(map["SkirtItem"].AsUUID(), map["SkirtAsset"].AsUUID()); |
215 | 215 | ||
216 | AvatarAppearance appearance = new AvatarAppearance(userID); | 216 | AvatarAppearance appearance = new AvatarAppearance(); |
217 | appearance.Wearables = wearables; | 217 | appearance.Wearables = wearables; |
218 | appearance.AvatarHeight = (float)map["Height"].AsReal(); | 218 | appearance.AvatarHeight = (float)map["Height"].AsReal(); |
219 | 219 | ||
@@ -257,7 +257,7 @@ namespace OpenSim.Services.Connectors.SimianGrid | |||
257 | 257 | ||
258 | if (avatar.AvatarType == 1) // LLAvatar | 258 | if (avatar.AvatarType == 1) // LLAvatar |
259 | { | 259 | { |
260 | AvatarAppearance appearance = avatar.ToAvatarAppearance(userID); | 260 | AvatarAppearance appearance = avatar.ToAvatarAppearance(); |
261 | 261 | ||
262 | OSDMap map = new OSDMap(); | 262 | OSDMap map = new OSDMap(); |
263 | 263 | ||
diff --git a/OpenSim/Services/Interfaces/IAvatarService.cs b/OpenSim/Services/Interfaces/IAvatarService.cs index d7af562..0d5ab7d 100644 --- a/OpenSim/Services/Interfaces/IAvatarService.cs +++ b/OpenSim/Services/Interfaces/IAvatarService.cs | |||
@@ -180,9 +180,9 @@ namespace OpenSim.Services.Interfaces | |||
180 | } | 180 | } |
181 | } | 181 | } |
182 | 182 | ||
183 | public AvatarAppearance ToAvatarAppearance(UUID owner) | 183 | public AvatarAppearance ToAvatarAppearance() |
184 | { | 184 | { |
185 | AvatarAppearance appearance = new AvatarAppearance(owner); | 185 | AvatarAppearance appearance = new AvatarAppearance(); |
186 | 186 | ||
187 | if (Data.Count == 0) | 187 | if (Data.Count == 0) |
188 | return appearance; | 188 | return appearance; |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 2b15896..00405a1 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -785,7 +785,7 @@ namespace OpenSim.Services.LLLoginService | |||
785 | if (avatar != null) | 785 | if (avatar != null) |
786 | aCircuit.Appearance = new AvatarAppearance(avatar); | 786 | aCircuit.Appearance = new AvatarAppearance(avatar); |
787 | else | 787 | else |
788 | aCircuit.Appearance = new AvatarAppearance(account.PrincipalID); | 788 | aCircuit.Appearance = new AvatarAppearance(); |
789 | 789 | ||
790 | //aCircuit.BaseFolder = irrelevant | 790 | //aCircuit.BaseFolder = irrelevant |
791 | aCircuit.CapsPath = CapsUtil.GetRandomCapsObjectPath(); | 791 | aCircuit.CapsPath = CapsUtil.GetRandomCapsObjectPath(); |