aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
diff options
context:
space:
mode:
authorMelanie2010-10-29 20:40:48 +0100
committerMelanie2010-10-29 20:40:48 +0100
commit9331898c320d7d6046c6d1ad467cdee0e32c8b71 (patch)
tree917ff7facdeb38d96f5f69576a134cbad4776eae /OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
parentMerge branch 'dev-appearance' (diff)
downloadopensim-SC-9331898c320d7d6046c6d1ad467cdee0e32c8b71.zip
opensim-SC-9331898c320d7d6046c6d1ad467cdee0e32c8b71.tar.gz
opensim-SC-9331898c320d7d6046c6d1ad467cdee0e32c8b71.tar.bz2
opensim-SC-9331898c320d7d6046c6d1ad467cdee0e32c8b71.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index bf71c07..facf146 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -125,13 +125,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
125 125
126 // Save avatar attachment information 126 // Save avatar attachment information
127 ScenePresence presence; 127 ScenePresence presence;
128 if (m_scene.AvatarFactory != null && m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) 128 if (m_scene.AvatarService != null && m_scene.TryGetScenePresence(remoteClient.AgentId, out presence))
129 { 129 {
130 m_log.Info( 130 m_log.Info(
131 "[ATTACHMENTS MODULE]: Saving avatar attachment. AgentID: " + remoteClient.AgentId 131 "[ATTACHMENTS MODULE]: Saving avatar attachment. AgentID: " + remoteClient.AgentId
132 + ", AttachmentPoint: " + AttachmentPt); 132 + ", AttachmentPoint: " + AttachmentPt);
133 133
134 m_scene.AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); 134 m_scene.AvatarService.SetAppearance(remoteClient.AgentId, presence.Appearance);
135 } 135 }
136 } 136 }
137 } 137 }
@@ -399,8 +399,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
399 item = m_scene.InventoryService.GetItem(item); 399 item = m_scene.InventoryService.GetItem(item);
400 presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /* att.UUID */); 400 presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /* att.UUID */);
401 401
402 if (m_scene.AvatarFactory != null) 402 if (m_scene.AvatarService != null)
403 m_scene.AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); 403 m_scene.AvatarService.SetAppearance(remoteClient.AgentId, presence.Appearance);
404 } 404 }
405 } 405 }
406 406
@@ -422,10 +422,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
422 presence.Appearance.DetachAttachment(itemID); 422 presence.Appearance.DetachAttachment(itemID);
423 423
424 // Save avatar attachment information 424 // Save avatar attachment information
425 if (m_scene.AvatarFactory != null) 425 if (m_scene.AvatarService != null)
426 { 426 {
427 m_log.Debug("[ATTACHMENTS MODULE]: Detaching from UserID: " + remoteClient.AgentId + ", ItemID: " + itemID); 427 m_log.Debug("[ATTACHMENTS MODULE]: Detaching from UserID: " + remoteClient.AgentId + ", ItemID: " + itemID);
428 m_scene.AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); 428 m_scene.AvatarService.SetAppearance(remoteClient.AgentId, presence.Appearance);
429 } 429 }
430 } 430 }
431 431
@@ -452,9 +452,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
452 452
453 presence.Appearance.DetachAttachment(itemID); 453 presence.Appearance.DetachAttachment(itemID);
454 454
455 if (m_scene.AvatarFactory != null) 455 if (m_scene.AvatarService != null)
456 { 456 {
457 m_scene.AvatarFactory.UpdateDatabase(remoteClient.AgentId, presence.Appearance); 457 m_scene.AvatarService.SetAppearance(remoteClient.AgentId, presence.Appearance);
458 } 458 }
459 part.ParentGroup.DetachToGround(); 459 part.ParentGroup.DetachToGround();
460 460