diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 2285b04..729572a 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -2292,7 +2292,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2292 | public void DetachSingleAttachmentToGround(UUID itemID, IClientAPI remoteClient) | 2292 | public void DetachSingleAttachmentToGround(UUID itemID, IClientAPI remoteClient) |
2293 | { | 2293 | { |
2294 | SceneObjectPart part = GetSceneObjectPart(itemID); | 2294 | SceneObjectPart part = GetSceneObjectPart(itemID); |
2295 | if(part == null || part.ParentGroup == null) | 2295 | if (part == null || part.ParentGroup == null) |
2296 | return; | 2296 | return; |
2297 | 2297 | ||
2298 | UUID inventoryID = part.ParentGroup.GetFromAssetID(); | 2298 | UUID inventoryID = part.ParentGroup.GetFromAssetID(); |
@@ -2300,7 +2300,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2300 | ScenePresence presence; | 2300 | ScenePresence presence; |
2301 | if (TryGetAvatar(remoteClient.AgentId, out presence)) | 2301 | if (TryGetAvatar(remoteClient.AgentId, out presence)) |
2302 | { | 2302 | { |
2303 | if(!ExternalChecks.ExternalChecksCanRezObject(part.ParentGroup.Children.Count, remoteClient.AgentId, presence.AbsolutePosition)) | 2303 | if (!ExternalChecks.ExternalChecksCanRezObject(part.ParentGroup.Children.Count, remoteClient.AgentId, presence.AbsolutePosition)) |
2304 | return; | 2304 | return; |
2305 | 2305 | ||
2306 | presence.Appearance.DetachAttachment(itemID); | 2306 | presence.Appearance.DetachAttachment(itemID); |