diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index e145f4a..171868b 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -2331,11 +2331,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
2331 | AttachmentPt = att.RootPart.AttachmentPoint; | 2331 | AttachmentPt = att.RootPart.AttachmentPoint; |
2332 | 2332 | ||
2333 | ScenePresence presence; | 2333 | ScenePresence presence; |
2334 | if(TryGetAvatar(remoteClient.AgentId, out presence)) | 2334 | if (TryGetAvatar(remoteClient.AgentId, out presence)) |
2335 | { | 2335 | { |
2336 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, att.UUID); | 2336 | presence.Appearance.SetAttachment((int)AttachmentPt, itemID, att.UUID); |
2337 | IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>(); | 2337 | IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>(); |
2338 | if(ava != null) | 2338 | if (ava != null) |
2339 | { | 2339 | { |
2340 | ava.UpdateDatabase(remoteClient.AgentId, presence.Appearance); | 2340 | ava.UpdateDatabase(remoteClient.AgentId, presence.Appearance); |
2341 | } | 2341 | } |
@@ -2346,11 +2346,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
2346 | public void DetachSingleAttachmentToInv(LLUUID itemID, IClientAPI remoteClient) | 2346 | public void DetachSingleAttachmentToInv(LLUUID itemID, IClientAPI remoteClient) |
2347 | { | 2347 | { |
2348 | ScenePresence presence; | 2348 | ScenePresence presence; |
2349 | if(TryGetAvatar(remoteClient.AgentId, out presence)) | 2349 | if (TryGetAvatar(remoteClient.AgentId, out presence)) |
2350 | { | 2350 | { |
2351 | presence.Appearance.DetachAttachment(itemID); | 2351 | presence.Appearance.DetachAttachment(itemID); |
2352 | IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>(); | 2352 | IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>(); |
2353 | if(ava != null) | 2353 | if (ava != null) |
2354 | { | 2354 | { |
2355 | ava.UpdateDatabase(remoteClient.AgentId, presence.Appearance); | 2355 | ava.UpdateDatabase(remoteClient.AgentId, presence.Appearance); |
2356 | } | 2356 | } |