diff options
author | Justin Clarke Casey | 2008-04-26 20:31:01 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-26 20:31:01 +0000 |
commit | accd89b3f1c7729e6bb34b52e8095baf9c1f440a (patch) | |
tree | eb2b485edb92d5349463ec3626f76e005905bdba /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | * Ooops, attachments now teleport/cross region borders along with your avatar... (diff) | |
download | opensim-SC_OLD-accd89b3f1c7729e6bb34b52e8095baf9c1f440a.zip opensim-SC_OLD-accd89b3f1c7729e6bb34b52e8095baf9c1f440a.tar.gz opensim-SC_OLD-accd89b3f1c7729e6bb34b52e8095baf9c1f440a.tar.bz2 opensim-SC_OLD-accd89b3f1c7729e6bb34b52e8095baf9c1f440a.tar.xz |
* First draft implementation of copying prim inventory items back to agent inventory
* Now, if you own an item in a prim, you should be able to successfully drag it back into your inventory
* Temporarily, users which are not owners of the item cannot copy it, even if 'everyone can copy' is set
* This is pending fixes/implementation of upstream permission implementation
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index b7e72ef..50c96e1 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -747,12 +747,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
747 | Acceleration = new LLVector3(0, 0, 0); | 747 | Acceleration = new LLVector3(0, 0, 0); |
748 | m_TextureAnimation = new byte[0]; | 748 | m_TextureAnimation = new byte[0]; |
749 | m_inventoryFileName = "inventory_" + LLUUID.Random().ToString() + ".tmp"; | 749 | m_inventoryFileName = "inventory_" + LLUUID.Random().ToString() + ".tmp"; |
750 | m_folderID = LLUUID.Random(); | 750 | |
751 | // Prims currently only contain a single folder (Contents). From looking at the Second Life protocol, | ||
752 | // this appears to have the same UUID (!) as the prim. If this isn't the case, one can't drag items from | ||
753 | // the prim into an agent inventory (Linden client reports that the "Object not found for drop" in its log | ||
754 | m_folderID = UUID; | ||
751 | 755 | ||
752 | Flags = 0; | 756 | Flags = 0; |
753 | Flags |= LLObject.ObjectFlags.AllowInventoryDrop | | 757 | Flags |= LLObject.ObjectFlags.AllowInventoryDrop | |
754 | LLObject.ObjectFlags.CreateSelected; | 758 | LLObject.ObjectFlags.CreateSelected; |
755 | |||
756 | 759 | ||
757 | TrimPermissions(); | 760 | TrimPermissions(); |
758 | 761 | ||