Don't eagerly clear frame collision events when physics actors subscribe and unsubscribe from collisions, in order to avoid a race condition.
Since this is done directly from ScenePresence, it can lead to a race condition with the simulator loop. There's no real point doing it anyway since the clear will be done very shortly afterwards by the simulate loop and either there are no events (for a new avatar) or events don't matter (for a departing avatar). This matches existing behaviour in OdePrim0.7.3-extended
parent
dc3cfcbe69
commit
96b3e1d0fa
|
@ -1274,7 +1274,7 @@ namespace OpenSim.Region.Physics.OdePlugin
|
|||
|
||||
// Don't clear collision event reporting here. This is called directly from scene code and so can lead
|
||||
// to a race condition with the simulate loop
|
||||
|
||||
|
||||
m_requestedUpdateFrequency = 0;
|
||||
m_eventsubscription = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue