From d60e4574633e50d257730cc582a6efb63c8e9d7b Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 15 May 2008 19:28:10 +0000 Subject: Committing patch from Melanie. 0001290: [PATCH] implement permissions propagation and script module hooks. Thanks Melanie! * Implements quite a few inventory related perms. * (from Teravus) Fixes Take Copy --- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index c171e78..0196b91 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -813,11 +813,9 @@ namespace OpenSim.Region.Environment.Scenes // 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.CreateSelected; TrimPermissions(); //m_undo = new UndoStack(ParentGroup.GetSceneMaxUndo()); @@ -877,9 +875,10 @@ namespace OpenSim.Region.Environment.Scenes /// public static SceneObjectPart FromXml(XmlReader xmlReader) { + // It's not necessary to persist this + XmlSerializer serializer = new XmlSerializer(typeof (SceneObjectPart)); SceneObjectPart newobject = (SceneObjectPart) serializer.Deserialize(xmlReader); - return newobject; } @@ -913,15 +912,6 @@ namespace OpenSim.Region.Environment.Scenes } } - public void ApplyNextOwnerPermissions() - { - BaseMask = NextOwnerMask; - OwnerMask = NextOwnerMask; - - TriggerScriptChangedEvent(Changed.OWNER); - - } - public void TrimPermissions() { @@ -2541,7 +2531,7 @@ namespace OpenSim.Region.Environment.Scenes } info.AddValue("m_inventoryFileName", m_inventoryFileName); - info.AddValue("m_folderID", m_folderID.UUID); + info.AddValue("m_folderID", UUID); info.AddValue("PhysActor", PhysActor); Dictionary TaskInventory_work = new Dictionary(); -- cgit v1.1