Add EventManager events triggered when a SOP is added or removed

from the physical scene. Invocations added in SceneObjectPart.
This commit is contained in:
Robert Adams
2013-02-14 09:48:11 -08:00
parent ef662fc959
commit 5920abbf8d
2 changed files with 57 additions and 0 deletions

View File

@@ -4316,6 +4316,7 @@ namespace OpenSim.Region.Framework.Scenes
}
PhysActor = pa;
ParentGroup.Scene.EventManager.TriggerObjectAddedToPhysicalScene(this);
}
/// <summary>
@@ -4328,6 +4329,7 @@ namespace OpenSim.Region.Framework.Scenes
/// </remarks>
public void RemoveFromPhysics()
{
ParentGroup.Scene.EventManager.TriggerObjectRemovedFromPhysicalScene(this);
ParentGroup.Scene.PhysicsScene.RemovePrim(PhysActor);
PhysActor = null;
}