From 176efe3f0680aa7e1c46d9eb0fc1ead762512ac3 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 26 Jun 2008 23:37:21 +0000 Subject: Mantis#1610. Thank you, Melanie for a patch that: Implements the beginning of llInventoryDrop. Doesn't cover the actual dropping yet, just the permissions for it. --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index eac74c2..b67de7e 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -1009,8 +1009,7 @@ namespace OpenSim.Region.Environment.Scenes return; } - // todo: also check llAllowInventoryDrop when implemented - if(part.OwnerID != destPart.OwnerID) + if(part.OwnerID != destPart.OwnerID && (part.GetEffectiveObjectFlags() & (uint)LLObject.ObjectFlags.AllowInventoryDrop) == 0) { // object cannot copy items to an object owned by a different owner // unless llAllowInventoryDrop has been called -- cgit v1.1