aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 5f6b4d7..17c5f04 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -1897,9 +1897,9 @@ namespace OpenSim.Region.Environment.Scenes
1897 // remove values from aggregated script events 1897 // remove values from aggregated script events
1898 AggregateScriptEvents &= ~oldparts; 1898 AggregateScriptEvents &= ~oldparts;
1899 m_scriptEvents.Remove(scriptid); 1899 m_scriptEvents.Remove(scriptid);
1900 aggregateScriptEvents();
1900 } 1901 }
1901 } 1902 }
1902 aggregateScriptEvents();
1903 } 1903 }
1904 1904
1905 /// <summary> 1905 /// <summary>
@@ -2354,6 +2354,8 @@ namespace OpenSim.Region.Environment.Scenes
2354 // oldparts = m_scriptEvents[scriptid]; 2354 // oldparts = m_scriptEvents[scriptid];
2355 2355
2356 // remove values from aggregated script events 2356 // remove values from aggregated script events
2357 if (m_scriptEvents[scriptid] == (scriptEvents) events)
2358 return;
2357 m_scriptEvents[scriptid] = (scriptEvents) events; 2359 m_scriptEvents[scriptid] = (scriptEvents) events;
2358 } 2360 }
2359 else 2361 else
@@ -3205,6 +3207,8 @@ namespace OpenSim.Region.Environment.Scenes
3205 3207
3206 public void aggregateScriptEvents() 3208 public void aggregateScriptEvents()
3207 { 3209 {
3210 AggregateScriptEvents = 0;
3211
3208 // Aggregate script events 3212 // Aggregate script events
3209 lock (m_scriptEvents) 3213 lock (m_scriptEvents)
3210 { 3214 {