Browse Source

Remove code from DetachSingleAttachmentToInv() that sets group changed on all parts, now that we're performing this check in UpdateKnownItem() for other purposes

Justin Clark-Casey (justincc) 13 years ago
parent
commit
1084d8f6a2
1 changed files with 0 additions and 11 deletions
  1. 0 11
      OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs

+ 0 - 11
OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs

@@ -653,17 +653,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
 
                             // Prepare sog for storage
                             group.AttachedAvatar = UUID.Zero;
-
-                            group.ForEachPart(
-                                delegate(SceneObjectPart part)
-                                {
-                                    // If there are any scripts,
-                                    // then always trigger a new object and state persistence in UpdateKnownItem()
-                                    if (part.Inventory.ContainsScripts())
-                                        group.HasGroupChanged = true;
-                                }
-                            );
-
                             group.RootPart.SetParentLocalId(0);
                             group.IsAttachment = false;
                             group.AbsolutePosition = group.RootPart.AttachedPos;