diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 22 |
1 files changed, 22 insertions, 0 deletions
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; | |||
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Xml; | 32 | using System.Xml; |
33 | using System.Xml.Serialization; | ||
33 | using Axiom.Math; | 34 | using Axiom.Math; |
34 | using libsecondlife; | 35 | using libsecondlife; |
35 | using libsecondlife.Packets; | 36 | using libsecondlife.Packets; |
@@ -89,6 +90,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
89 | /// since the group's last persistent backup | 90 | /// since the group's last persistent backup |
90 | /// </summary> | 91 | /// </summary> |
91 | public bool HasGroupChanged = false; | 92 | public bool HasGroupChanged = false; |
93 | |||
92 | 94 | ||
93 | 95 | ||
94 | private LLVector3 lastPhysGroupPos; | 96 | private LLVector3 lastPhysGroupPos; |
@@ -484,6 +486,26 @@ namespace OpenSim.Region.Environment.Scenes | |||
484 | { | 486 | { |
485 | } | 487 | } |
486 | 488 | ||
489 | public void SetFromAssetID(LLUUID AssetId) | ||
490 | { | ||
491 | lock (m_parts) | ||
492 | { | ||
493 | foreach (SceneObjectPart part in m_parts.Values) | ||
494 | { | ||
495 | part.fromAssetID = AssetId; | ||
496 | } | ||
497 | } | ||
498 | } | ||
499 | |||
500 | public LLUUID GetFromAssetID() | ||
501 | { | ||
502 | if (m_rootPart != null) | ||
503 | { | ||
504 | return m_rootPart.fromAssetID; | ||
505 | } | ||
506 | return LLUUID.Zero; | ||
507 | } | ||
508 | |||
487 | /// <summary> | 509 | /// <summary> |
488 | /// Hooks this object up to the backup event so that it is persisted to the database when the update thread executes. | 510 | /// Hooks this object up to the backup event so that it is persisted to the database when the update thread executes. |
489 | /// </summary> | 511 | /// </summary> |