diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 3d6a905..aa74e01 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -2194,8 +2194,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
2194 | { | 2194 | { |
2195 | group.ClearPartAttachmentData(); | 2195 | group.ClearPartAttachmentData(); |
2196 | } | 2196 | } |
2197 | // Ghost prim if this is enabled! | ||
2198 | //group.ApplyPhysics(m_physicalPrim); | ||
2199 | } | 2197 | } |
2200 | 2198 | ||
2201 | // Fire on_rez | 2199 | // Fire on_rez |
@@ -2208,7 +2206,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
2208 | if (!Permissions.BypassPermissions()) | 2206 | if (!Permissions.BypassPermissions()) |
2209 | { | 2207 | { |
2210 | if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0) | 2208 | if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0) |
2211 | userInfo.DeleteItem(item.ID); | 2209 | { |
2210 | // If this is done on attachments, no | ||
2211 | // copy ones will be lost, so avoid it | ||
2212 | // | ||
2213 | if (!attachment) | ||
2214 | userInfo.DeleteItem(item.ID); | ||
2215 | } | ||
2212 | } | 2216 | } |
2213 | 2217 | ||
2214 | return rootPart.ParentGroup; | 2218 | return rootPart.ParentGroup; |