aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-26 01:55:36 +0000
committerJustin Clark-Casey (justincc)2011-11-26 01:55:36 +0000
commit4efd9a3b7bedbacf166ab8a923dd0219e0d548af (patch)
tree9421d991fd55ea78a5af2f9887f08ac511f5b074
parentminor: formatting changes in Scene.PacketHandlers.cs (diff)
downloadopensim-SC_OLD-4efd9a3b7bedbacf166ab8a923dd0219e0d548af.zip
opensim-SC_OLD-4efd9a3b7bedbacf166ab8a923dd0219e0d548af.tar.gz
opensim-SC_OLD-4efd9a3b7bedbacf166ab8a923dd0219e0d548af.tar.bz2
opensim-SC_OLD-4efd9a3b7bedbacf166ab8a923dd0219e0d548af.tar.xz
When removing an LSL sensor for a script (e.g. through llResetScript() or state change), don't also remove sensors for other scripts in the same prim.
Hopefully fixes http://opensimulator.org/mantis/view.php?id=4448 and http://opensimulator.org/mantis/view.php?id=4452
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
index 5527d14..3eeb23d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -140,7 +140,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
140 List<SenseRepeatClass> NewSensors = new List<SenseRepeatClass>(); 140 List<SenseRepeatClass> NewSensors = new List<SenseRepeatClass>();
141 foreach (SenseRepeatClass ts in SenseRepeaters) 141 foreach (SenseRepeatClass ts in SenseRepeaters)
142 { 142 {
143 if (ts.localID != m_localID && ts.itemID != m_itemID) 143 if (ts.localID != m_localID || ts.itemID != m_itemID)
144 { 144 {
145 NewSensors.Add(ts); 145 NewSensors.Add(ts);
146 } 146 }