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
user_profiles
Justin Clark-Casey (justincc) 2013-01-04 21:37:11 +00:00
parent 7e45096314
commit 7232cedd2b
1 changed files with 3 additions and 3 deletions

View File

@ -6194,6 +6194,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
ps.BurstSpeedMax = 1.0f; ps.BurstSpeedMax = 1.0f;
ps.BurstRate = 0.1f; ps.BurstRate = 0.1f;
ps.PartMaxAge = 10.0f; ps.PartMaxAge = 10.0f;
ps.BurstPartCount = 1;
return ps; return ps;
} }
@ -6215,9 +6216,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
SetParticleSystem(m_host, rules); SetParticleSystem(m_host, rules);
} }
private void SetParticleSystem(SceneObjectPart part, LSL_List rules) { private void SetParticleSystem(SceneObjectPart part, LSL_List rules)
{
if (rules.Length == 0) if (rules.Length == 0)
{ {
part.RemoveParticleSystem(); part.RemoveParticleSystem();