From ba2de258f420245d07c4d194f8f8a71abe299aff Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 25 Mar 2008 14:27:39 +0000 Subject: * Refactored out circular reference in Region.Environment <-> Framework.Data.Base We REALLY need to get the db layer sorted soon... --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 14 +++++--------- OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 11 +++++++++-- 2 files changed, 14 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 2f2a1be..edb76e9 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -1360,8 +1360,8 @@ namespace OpenSim.Region.Environment.Scenes SceneObjectPart part = GetChildPart(localID); if (part != null) { - part.Text = text; - } + part.SetText( text ); + } } public void SetPartText(string text, LLUUID partID) @@ -1369,7 +1369,7 @@ namespace OpenSim.Region.Environment.Scenes SceneObjectPart part = GetChildPart(partID); if (part != null) { - part.Text = text; + part.SetText( text ); } } @@ -1905,12 +1905,6 @@ namespace OpenSim.Region.Environment.Scenes return null; } - public void UpdateText(string text) - { - m_rootPart.Text = text; - m_rootPart.ScheduleTerseUpdate(); - } - public void ObjectGrabHandler(uint localId, LLVector3 offsetPos, IClientAPI remoteClient) { if (m_rootPart.LocalId == localId) @@ -1995,6 +1989,8 @@ namespace OpenSim.Region.Environment.Scenes (int) (color.y*0xff), (int) (color.z*0xff)); Text = text; + + m_rootPart.ScheduleFullUpdate(); } public void ApplyPhysics(bool m_physicalPrim) diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index cbefc19..2c65a8f 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -509,7 +509,6 @@ namespace OpenSim.Region.Environment.Scenes set { m_text = value; - ScheduleFullUpdate(); } } @@ -2289,13 +2288,20 @@ namespace OpenSim.Region.Environment.Scenes { } + + public void SetText(string text) + { + Text = text; + ScheduleFullUpdate(); + } + public void SetText(string text, Vector3 color, double alpha) { Color = Color.FromArgb(0xff - (int) (alpha*0xff), (int) (color.x*0xff), (int) (color.y*0xff), (int) (color.z*0xff)); - Text = text; + SetText( text ); } protected SceneObjectPart(SerializationInfo info, StreamingContext context) @@ -2411,5 +2417,6 @@ namespace OpenSim.Region.Environment.Scenes info.AddValue("m_shape", m_shape); info.AddValue("m_parentGroup", m_parentGroup); } + } } -- cgit v1.1