From f71871bca3f2a6a3b49634963c6754b2acba27cd Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 27 Apr 2008 14:37:51 +0000 Subject: * More attachment stuff, reworked some of the inventory routines to be what I need them to be for attachments. --- .../Region/Environment/Scenes/SceneObjectGroup.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 7596e24..2493ed8 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -30,6 +30,7 @@ using System.Collections.Generic; using System.Drawing; using System.IO; using System.Xml; +using System.Xml.Serialization; using Axiom.Math; using libsecondlife; using libsecondlife.Packets; @@ -89,6 +90,7 @@ namespace OpenSim.Region.Environment.Scenes /// since the group's last persistent backup /// public bool HasGroupChanged = false; + private LLVector3 lastPhysGroupPos; @@ -484,6 +486,26 @@ namespace OpenSim.Region.Environment.Scenes { } + public void SetFromAssetID(LLUUID AssetId) + { + lock (m_parts) + { + foreach (SceneObjectPart part in m_parts.Values) + { + part.fromAssetID = AssetId; + } + } + } + + public LLUUID GetFromAssetID() + { + if (m_rootPart != null) + { + return m_rootPart.fromAssetID; + } + return LLUUID.Zero; + } + /// /// Hooks this object up to the backup event so that it is persisted to the database when the update thread executes. /// -- cgit v1.1