diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 5576ec9..0d14963 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -244,7 +244,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
244 | 244 | ||
245 | public bool IgnoreUndoUpdate = false; | 245 | public bool IgnoreUndoUpdate = false; |
246 | 246 | ||
247 | private PrimFlags LocalFlags; | 247 | public PrimFlags LocalFlags; |
248 | 248 | ||
249 | private float m_damage = -1.0f; | 249 | private float m_damage = -1.0f; |
250 | private byte[] m_TextureAnimation; | 250 | private byte[] m_TextureAnimation; |
@@ -933,32 +933,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
933 | public Color Color | 933 | public Color Color |
934 | { | 934 | { |
935 | get { return m_color; } | 935 | get { return m_color; } |
936 | set | 936 | set { m_color = value; } |
937 | { | ||
938 | m_color = value; | ||
939 | |||
940 | /* ScheduleFullUpdate() need not be called b/c after | ||
941 | * setting the color, the text will be set, so then | ||
942 | * ScheduleFullUpdate() will be called. */ | ||
943 | //ScheduleFullUpdate(); | ||
944 | } | ||
945 | } | 937 | } |
946 | 938 | ||
947 | public string Text | 939 | public string Text |
948 | { | 940 | { |
949 | get | 941 | get |
950 | { | 942 | { |
951 | string returnstr = m_text; | 943 | if (m_text.Length > 255) |
952 | if (returnstr.Length > 255) | 944 | return m_text.Substring(0, 254); |
953 | { | 945 | return m_text; |
954 | returnstr = returnstr.Substring(0, 254); | ||
955 | } | ||
956 | return returnstr; | ||
957 | } | ||
958 | set | ||
959 | { | ||
960 | m_text = value; | ||
961 | } | 946 | } |
947 | set { m_text = value; } | ||
962 | } | 948 | } |
963 | 949 | ||
964 | 950 | ||
@@ -2795,6 +2781,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2795 | if (ParentGroup == null) | 2781 | if (ParentGroup == null) |
2796 | return; | 2782 | return; |
2797 | 2783 | ||
2784 | // When running OpenSim tests, Scene (and EventManager can be null). | ||
2785 | // Need to fix tests before we can trigger this here | ||
2786 | // ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2787 | |||
2798 | ParentGroup.QueueForUpdateCheck(); | 2788 | ParentGroup.QueueForUpdateCheck(); |
2799 | 2789 | ||
2800 | int timeNow = Util.UnixTimeSinceEpoch(); | 2790 | int timeNow = Util.UnixTimeSinceEpoch(); |
@@ -2827,6 +2817,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2827 | if (ParentGroup == null) | 2817 | if (ParentGroup == null) |
2828 | return; | 2818 | return; |
2829 | 2819 | ||
2820 | // When running OpenSim tests, Scene (and EventManager can be null). | ||
2821 | // Need to fix tests before we can trigger this here | ||
2822 | // ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2823 | |||
2830 | // This was pulled from SceneViewer. Attachments always receive full updates. | 2824 | // This was pulled from SceneViewer. Attachments always receive full updates. |
2831 | // I could not verify if this is a requirement but this maintains existing behavior | 2825 | // I could not verify if this is a requirement but this maintains existing behavior |
2832 | if (ParentGroup.IsAttachment) | 2826 | if (ParentGroup.IsAttachment) |