mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Add EventManager events triggered when a SOP is added or removed
from the physical scene. Invocations added in SceneObjectPart.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user