aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 4881499..e2e697e 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -242,7 +242,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
242 { 242 {
243// m_log.DebugFormat( 243// m_log.DebugFormat(
244// "[ATTACHMENTS MODULE]: Attaching object {0} {1} to {2} point {3} from ground (silent = {4})", 244// "[ATTACHMENTS MODULE]: Attaching object {0} {1} to {2} point {3} from ground (silent = {4})",
245// group.Name, group.LocalId, sp.Name, AttachmentPt, silent); 245// group.Name, group.LocalId, sp.Name, attachmentPt, silent);
246 246
247 if (sp.GetAttachments(attachmentPt).Contains(group)) 247 if (sp.GetAttachments(attachmentPt).Contains(group))
248 { 248 {
@@ -356,8 +356,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
356 { 356 {
357 if (att == null) 357 if (att == null)
358 DetachSingleAttachmentToInv(itemID, sp.ControllingClient); 358 DetachSingleAttachmentToInv(itemID, sp.ControllingClient);
359 else
360 ShowAttachInUserInventory(att, sp, itemID, AttachmentPt);
361 } 359 }
362 360
363 return att; 361 return att;
@@ -386,9 +384,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
386 384
387 if (objatt != null) 385 if (objatt != null)
388 { 386 {
389 // Loading the inventory from XML will have set this, but 387 // HasGroupChanged is being set from within RezObject. Ideally it would be set by the caller.
390 // there is no way the object could have changed yet,
391 // since scripts aren't running yet. So, clear it here.
392 objatt.HasGroupChanged = false; 388 objatt.HasGroupChanged = false;
393 bool tainted = false; 389 bool tainted = false;
394 if (attachmentPt != 0 && attachmentPt != objatt.AttachmentPoint) 390 if (attachmentPt != 0 && attachmentPt != objatt.AttachmentPoint)