* Fixed an issue which caused regions to crash when duplicating primitives.

afrisby
Adam Frisby 2007-07-14 22:44:41 +00:00
parent 2ccb8f7118
commit e9bcc7a3fd
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,7 @@ namespace OpenSim.Region.Environment.Scenes
m_eventManager.OnBackup += new EventManager.OnBackupDelegate(ProcessBackup); m_eventManager.OnBackup += new EventManager.OnBackupDelegate(ProcessBackup);
m_eventManager.OnParcelPrimCountUpdate += new EventManager.OnParcelPrimCountUpdateDelegate(ProcessParcelPrimCountUpdate); m_eventManager.OnParcelPrimCountUpdate += new EventManager.OnParcelPrimCountUpdateDelegate(ProcessParcelPrimCountUpdate);
} }
public void unregisterEvents() public void unregisterEvents()
{ {
m_eventManager.OnBackup -= new EventManager.OnBackupDelegate(ProcessBackup); m_eventManager.OnBackup -= new EventManager.OnBackupDelegate(ProcessBackup);
@ -162,6 +163,7 @@ namespace OpenSim.Region.Environment.Scenes
SceneObject dupe = new SceneObject(); SceneObject dupe = new SceneObject();
dupe.m_world = this.m_world; dupe.m_world = this.m_world;
dupe.m_eventManager = this.m_eventManager;
dupe.m_regionHandle = this.m_regionHandle; dupe.m_regionHandle = this.m_regionHandle;
Primitive newRoot = this.rootPrimitive.Copy(dupe, dupe); Primitive newRoot = this.rootPrimitive.Copy(dupe, dupe);
dupe.rootPrimitive = newRoot; dupe.rootPrimitive = newRoot;