From 4c8b8d22ff66605b11a4881cdb7004cb4ce49592 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 18 Jul 2007 21:26:31 +0000 Subject: A script/custom application should be able to add a particle system to a prim, just create a new libsecondlife.Primitive.ParticleSystem() and then call AddNewParticleSystem() on the OpenSim particle : we really need to rename our particle class to stop conflict with the one in libsl. --- OpenSim/Region/Environment/Scenes/Primitive.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes') diff --git a/OpenSim/Region/Environment/Scenes/Primitive.cs b/OpenSim/Region/Environment/Scenes/Primitive.cs index bca8e0c..7484393 100644 --- a/OpenSim/Region/Environment/Scenes/Primitive.cs +++ b/OpenSim/Region/Environment/Scenes/Primitive.cs @@ -38,6 +38,7 @@ namespace OpenSim.Region.Environment.Scenes public uint BaseMask = FULL_MASK_PERMISSIONS; private PrimitiveBaseShape m_Shape; + private byte[] m_particleSystem = new byte[0]; public SceneObject m_RootParent; public bool m_isRootPrim; @@ -620,6 +621,12 @@ namespace OpenSim.Region.Environment.Scenes #endregion + public void AddNewParticleSystem(libsecondlife.Primitive.ParticleSystem pSystem) + { + this.m_particleSystem = pSystem.GetBytes(); + ScheduleFullUpdate(); + } + #region Client Update Methods /// @@ -653,7 +660,7 @@ namespace OpenSim.Region.Environment.Scenes lRot = new LLQuaternion(Rotation.x, Rotation.y, Rotation.z, Rotation.w); remoteClient.SendPrimitiveToClient(m_regionHandle, 64096, LocalId, m_Shape, lPos, lRot, m_flags, m_uuid, - OwnerID, m_text, ParentID); + OwnerID, m_text, ParentID, this.m_particleSystem); } /// -- cgit v1.1