From 396486a93b5ebef8e1d0cff957c8ee2054563a1a Mon Sep 17 00:00:00 2001 From: "Huaiyu (Kitty) Liu" Date: Mon, 7 Feb 2011 09:45:16 -0800 Subject: [PATCH] Added set functions for the last a few properties in SOP. --- .../Framework/Scenes/SceneObjectPart.cs | 60 +++++++++++++++++-- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 8f63e69e6b..6ced51d4ef 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -819,14 +819,34 @@ namespace OpenSim.Region.Framework.Scenes public Byte[] TextureAnimation { get { return m_TextureAnimation; } - set { m_TextureAnimation = value; } + set + { + SetTextureAnimation(value); + UpdateBucketSyncInfo("TextureAnimation"); + //m_TextureAnimation = value; + } + } + //SYMMETRIC SYNC + public void SetTextureAnimation(Byte[] value) + { + m_TextureAnimation = value; } public Byte[] ParticleSystem { get { return m_particleSystem; } - set { m_particleSystem = value; } + set + { + SetParticleSystem(value); + UpdateBucketSyncInfo("ParticleSystem"); + //m_particleSystem = value; + } + } + //SYMMETRIC SYNC + public void SetParticleSystem(Byte[] value) + { + m_particleSystem = value; } @@ -1449,12 +1469,24 @@ namespace OpenSim.Region.Framework.Scenes set { + SetMediaUrl(value); + UpdateBucketSyncInfo("MediaUrl"); + /* m_mediaUrl = value; if (ParentGroup != null) ParentGroup.HasGroupChanged = true; + * */ } } + //SYMMETRIC SYNC + public void SetMediaUrl(string value) + { + m_mediaUrl = value; + + if (ParentGroup != null) + ParentGroup.HasGroupChanged = true; + } public bool CreateSelected @@ -1851,15 +1883,35 @@ namespace OpenSim.Region.Framework.Scenes get { return m_collisionSound; } set { - m_collisionSound = value; + SetCollisionSound(value); + UpdateBucketSyncInfo("CollisionSound"); + //m_collisionSound = value; aggregateScriptEvents(); } } + //SYMMETRIC SYNC + //CollisionSound is a special case. We won't call aggregateScriptEvents inside SetCollisionSound, + //so that when RegionSynModule triggers SOP.UpdateAllProperties, it calls SetCollisionSound + public void SetCollisionSound(UUID value) + { + m_collisionSound = value; + } + public float CollisionSoundVolume { get { return m_collisionSoundVolume; } - set { m_collisionSoundVolume = value; } + set + { + SetCollisionSoundVolume(value); + UpdateBucketSyncInfo("CollisionSoundVolume"); + //m_collisionSoundVolume = value; + } + } + //SYMMETRIC SYNC + public void SetCollisionSoundVolume(float value) + { + m_collisionSoundVolume = value; } #endregion Public Properties with only Get