From 16d0a895cb817f96a55091fadbbd4cfb2d909204 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 17 Jun 2008 20:36:21 +0000 Subject: * Refactor: Move the responsibility for applying physics and sending the initial client update to Scene.AddSceneObject() from some of the SceneObjectGroup constructors * I think this has been done cleanly from inspection and testing, but if prim creation or load suddenly starts playing up more than usual, please open a mantis * This also has the effect of stopping the archiver generating ghost in-world prims * Some code dupliction also removed --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 877f196..f94830e 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -350,10 +350,6 @@ namespace OpenSim.Region.Environment.Scenes SetPartAsRoot(part); RegionHandle = regionHandle; - - ApplyPhysics(scene.m_physicalPrim); - - ScheduleGroupForFullUpdate(); } /// @@ -412,10 +408,6 @@ namespace OpenSim.Region.Environment.Scenes m_rootPart.ParentID = 0; m_rootPart.RegionHandle = m_regionHandle; UpdateParentIDs(); - - ApplyPhysics(scene.m_physicalPrim); - - ScheduleGroupForFullUpdate(); } /// @@ -854,7 +846,6 @@ namespace OpenSim.Region.Environment.Scenes if (part.UUID != m_rootPart.UUID) { part.ParentID = m_rootPart.LocalId; - } } } -- cgit v1.1