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.

This commit is contained in:
MW
2007-07-18 21:26:31 +00:00
parent d2b459b8e5
commit 4c8b8d22ff
6 changed files with 29 additions and 18 deletions

View File

@@ -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
/// <summary>
@@ -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);
}
/// <summary>