From 04cf04600c01f2cb328847133430f777bc7f1a7c Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 11 Sep 2007 14:18:34 +0000 Subject: Applied ldvoipeng's patch [#360], sorry for it taking so long to apply it. If in future anyone's patch hasn't been applied within a few days, please can someone kick one of the developers with svn access. --- .../Region/Environment/Scenes/SceneObjectPart.cs | 24 ++++++++++++++++++++-- .../Environment/Scenes/Scripting/IScriptHost.cs | 4 ++++ .../Environment/Scenes/Scripting/NullScriptHost.cs | 20 ++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 2122a4f..81c759d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -10,7 +10,7 @@ using libsecondlife.Packets; using OpenSim.Framework.Interfaces; using OpenSim.Framework.Types; using OpenSim.Region.Environment.Scenes.Scripting; -using OpenSim.Framework.Utilities; +using OpenSim.Framework; using OpenSim.Region.Physics.Manager; using OpenSim.Region.Environment.Interfaces; @@ -29,7 +29,6 @@ namespace OpenSim.Region.Environment.Scenes protected Dictionary TaskInventory = new Dictionary(); - public LLUUID CreatorID; public LLUUID OwnerID; public LLUUID GroupID; public LLUUID LastOwnerID; @@ -56,6 +55,9 @@ namespace OpenSim.Region.Environment.Scenes #region Properties + public LLUUID CreatorID; + public LLUUID ObjectCreator { get { return CreatorID; } } + /// /// Serial count for inventory file , used to tell if inventory has changed /// no need for this to be part of Database backup @@ -210,6 +212,11 @@ namespace OpenSim.Region.Environment.Scenes get { return OwnerID; } } + public SceneObjectGroup ParentGroup + { + get { return m_parentGroup; } + } + #region Constructors /// /// @@ -324,6 +331,15 @@ namespace OpenSim.Region.Environment.Scenes } + public LLUUID GetRootPartUUID() + { + if (m_parentGroup != null) + { + return m_parentGroup.UUID; + } + return LLUUID.Zero; + } + #region Copying /// /// @@ -615,12 +631,14 @@ namespace OpenSim.Region.Environment.Scenes for (int i = 0; i < avatars.Count; i++) { avatars[i].AddFullPart(this); + // avatars[i].QueuePartForUpdate(this); } } public void AddFullUpdateToAvatar(ScenePresence presence) { presence.AddFullPart(this); + //presence.QueuePartForUpdate(this); } /// @@ -677,12 +695,14 @@ namespace OpenSim.Region.Environment.Scenes for (int i = 0; i < avatars.Count; i++) { avatars[i].AddTersePart(this); + // avatars[i].QueuePartForUpdate(this); } } public void AddTerseUpdateToAvatar(ScenePresence presence) { presence.AddTersePart(this); + // presence.QueuePartForUpdate(this); } /// diff --git a/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs index e7d0570..2f248ce 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs @@ -8,8 +8,12 @@ namespace OpenSim.Region.Environment.Scenes.Scripting public interface IScriptHost { string Name { get; set;} + string SitName{ get; set;} + string TouchName { get; set;} + string Description { get; set; } LLUUID UUID { get; } LLUUID ObjectOwner { get;} + LLUUID ObjectCreator { get; } LLVector3 AbsolutePosition { get; } void SetText(string text, Axiom.Math.Vector3 color, double alpha); } diff --git a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs index a50b142..5e3dcae 100644 --- a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs +++ b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs @@ -15,6 +15,24 @@ namespace OpenSim.Region.Environment.Scenes.Scripting set { } } + public string SitName + { + get { return ""; } + set { } + } + + public string TouchName + { + get { return ""; } + set { } + } + + public string Description + { + get { return ""; } + set { } + } + public LLUUID UUID { get { return LLUUID.Zero; } @@ -23,6 +41,8 @@ namespace OpenSim.Region.Environment.Scenes.Scripting public LLUUID ObjectOwner { get { return LLUUID.Zero; } } + public LLUUID ObjectCreator { get { return LLUUID.Zero; } } + public LLVector3 AbsolutePosition { get { return m_pos; } -- cgit v1.1