diff options
author | Justin Clark-Casey (justincc) | 2013-01-04 21:37:11 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-01-04 21:50:38 +0000 |
commit | 7199ac09ee4327df467c49b8307f98dfb31fa8a3 (patch) | |
tree | c8e1954c519cd011f9bb8e41ea74aa5add6c7f13 /OpenSim/Region/ScriptEngine | |
parent | Fix build break caused by missing ) from dce2809. (diff) | |
download | opensim-SC-7199ac09ee4327df467c49b8307f98dfb31fa8a3.zip opensim-SC-7199ac09ee4327df467c49b8307f98dfb31fa8a3.tar.gz opensim-SC-7199ac09ee4327df467c49b8307f98dfb31fa8a3.tar.bz2 opensim-SC-7199ac09ee4327df467c49b8307f98dfb31fa8a3.tar.xz |
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
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 115bac9..ea4e609 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6194,6 +6194,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6194 | ps.BurstSpeedMax = 1.0f; | 6194 | ps.BurstSpeedMax = 1.0f; |
6195 | ps.BurstRate = 0.1f; | 6195 | ps.BurstRate = 0.1f; |
6196 | ps.PartMaxAge = 10.0f; | 6196 | ps.PartMaxAge = 10.0f; |
6197 | ps.BurstPartCount = 1; | ||
6197 | return ps; | 6198 | return ps; |
6198 | } | 6199 | } |
6199 | 6200 | ||
@@ -6215,9 +6216,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6215 | SetParticleSystem(m_host, rules); | 6216 | SetParticleSystem(m_host, rules); |
6216 | } | 6217 | } |
6217 | 6218 | ||
6218 | private void SetParticleSystem(SceneObjectPart part, LSL_List rules) { | 6219 | private void SetParticleSystem(SceneObjectPart part, LSL_List rules) |
6219 | 6220 | { | |
6220 | |||
6221 | if (rules.Length == 0) | 6221 | if (rules.Length == 0) |
6222 | { | 6222 | { |
6223 | part.RemoveParticleSystem(); | 6223 | part.RemoveParticleSystem(); |