aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/InnerScene.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs8
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index 435ce77..4e7494e 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -197,9 +197,6 @@ namespace OpenSim.Region.Environment.Scenes
197 protected internal bool AddRestoredSceneObject( 197 protected internal bool AddRestoredSceneObject(
198 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted) 198 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted)
199 { 199 {
200 sceneObject.RegionHandle = m_regInfo.RegionHandle;
201 sceneObject.SetScene(m_parentScene);
202
203 foreach (SceneObjectPart part in sceneObject.Children.Values) 200 foreach (SceneObjectPart part in sceneObject.Children.Values)
204 { 201 {
205 part.LocalId = m_parentScene.PrimIDAllocate(); 202 part.LocalId = m_parentScene.PrimIDAllocate();
@@ -251,9 +248,8 @@ namespace OpenSim.Region.Environment.Scenes
251 { 248 {
252 if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == UUID.Zero) 249 if (sceneObject == null || sceneObject.RootPart == null || sceneObject.RootPart.UUID == UUID.Zero)
253 return false; 250 return false;
254 251
255 sceneObject.ApplyPhysics(m_parentScene.m_physicalPrim); 252 sceneObject.AttachToScene(m_parentScene);
256 sceneObject.ScheduleGroupForFullUpdate();
257 253
258 lock (Entities) 254 lock (Entities)
259 { 255 {