diff options
Diffstat (limited to 'OpenSim/OpenSim.Region/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/OpenSim.Region/Scenes/Scene.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/OpenSim.Region/Scenes/Scene.cs b/OpenSim/OpenSim.Region/Scenes/Scene.cs index fd78fd6..bf2244e 100644 --- a/OpenSim/OpenSim.Region/Scenes/Scene.cs +++ b/OpenSim/OpenSim.Region/Scenes/Scene.cs | |||
@@ -481,19 +481,17 @@ namespace OpenSim.Region.Scenes | |||
481 | { | 481 | { |
482 | try | 482 | try |
483 | { | 483 | { |
484 | |||
485 | // MainLog.Instance.Notice("World.cs: AddNewPrim() - Creating new prim"); | ||
486 | |||
487 | Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount); | 484 | Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount); |
488 | 485 | ||
489 | this.Entities.Add(prim.uuid, prim); | 486 | this.Entities.Add(prim.uuid, prim); |
490 | this._primCount++; | 487 | this._primCount++; |
488 | |||
489 | // Trigger event for listeners | ||
490 | eventManager.TriggerOnNewPrimitive(prim); | ||
491 | } | 491 | } |
492 | catch (Exception e) | 492 | catch (Exception e) |
493 | { | 493 | { |
494 | 494 | OpenSim.Framework.Console.MainLog.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString()); | |
495 | // MainLog.Instance.Warn("World.cs: AddNewPrim() - Failed with exception " + e.ToString()); | ||
496 | |||
497 | } | 495 | } |
498 | } | 496 | } |
499 | 497 | ||
@@ -583,6 +581,8 @@ namespace OpenSim.Region.Scenes | |||
583 | /// <param name="agentID"></param> | 581 | /// <param name="agentID"></param> |
584 | public override void RemoveClient(LLUUID agentID) | 582 | public override void RemoveClient(LLUUID agentID) |
585 | { | 583 | { |
584 | eventManager.TriggerOnRemovePresence(agentID); | ||
585 | |||
586 | return; | 586 | return; |
587 | } | 587 | } |
588 | #endregion | 588 | #endregion |