mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* 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
This commit is contained in:
@@ -747,12 +747,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
Acceleration = new LLVector3(0, 0, 0);
|
||||
m_TextureAnimation = new byte[0];
|
||||
m_inventoryFileName = "inventory_" + LLUUID.Random().ToString() + ".tmp";
|
||||
m_folderID = LLUUID.Random();
|
||||
|
||||
// Prims currently only contain a single folder (Contents). From looking at the Second Life protocol,
|
||||
// this appears to have the same UUID (!) as the prim. If this isn't the case, one can't drag items from
|
||||
// the prim into an agent inventory (Linden client reports that the "Object not found for drop" in its log
|
||||
m_folderID = UUID;
|
||||
|
||||
Flags = 0;
|
||||
Flags |= LLObject.ObjectFlags.AllowInventoryDrop |
|
||||
LLObject.ObjectFlags.CreateSelected;
|
||||
|
||||
Flags |= LLObject.ObjectFlags.AllowInventoryDrop |
|
||||
LLObject.ObjectFlags.CreateSelected;
|
||||
|
||||
TrimPermissions();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user