mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Clear OdeCharacter CollisionEventUpdate when we subscribe or unsubscribe from collision events
This commit is contained in:
@@ -1210,11 +1210,13 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
{
|
||||
m_requestedUpdateFrequency = ms;
|
||||
m_eventsubscription = ms;
|
||||
CollisionEventsThisFrame.Clear();
|
||||
_parent_scene.AddCollisionEventReporting(this);
|
||||
}
|
||||
|
||||
public override void UnSubscribeEvents()
|
||||
{
|
||||
CollisionEventsThisFrame.Clear();
|
||||
_parent_scene.RemoveCollisionEventReporting(this);
|
||||
m_requestedUpdateFrequency = 0;
|
||||
m_eventsubscription = 0;
|
||||
|
||||
Reference in New Issue
Block a user