mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Set default particle burst count to 1 instead of 0 in any set particle system script call that does not have an empty list.
As per http://opensimulator.org/mantis/view.php?id=6353
This commit is contained in:
@@ -6194,6 +6194,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ps.BurstSpeedMax = 1.0f;
|
||||
ps.BurstRate = 0.1f;
|
||||
ps.PartMaxAge = 10.0f;
|
||||
ps.BurstPartCount = 1;
|
||||
return ps;
|
||||
}
|
||||
|
||||
@@ -6215,9 +6216,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
SetParticleSystem(m_host, rules);
|
||||
}
|
||||
|
||||
private void SetParticleSystem(SceneObjectPart part, LSL_List rules) {
|
||||
|
||||
|
||||
private void SetParticleSystem(SceneObjectPart part, LSL_List rules)
|
||||
{
|
||||
if (rules.Length == 0)
|
||||
{
|
||||
part.RemoveParticleSystem();
|
||||
|
||||
Reference in New Issue
Block a user