aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/InnerScene.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-06 22:21:25 +0000
committerJustin Clarke Casey2008-11-06 22:21:25 +0000
commit0d17ba2a76d4eb01f0bd6097c3974cd9d9fb2061 (patch)
tree82fc3cdd059f30d72407875a69ff662bb5747e41 /OpenSim/Region/Environment/Scenes/InnerScene.cs
parentadd create_time and access_time to asset db for mysql, as well (diff)
downloadopensim-SC-0d17ba2a76d4eb01f0bd6097c3974cd9d9fb2061.zip
opensim-SC-0d17ba2a76d4eb01f0bd6097c3974cd9d9fb2061.tar.gz
opensim-SC-0d17ba2a76d4eb01f0bd6097c3974cd9d9fb2061.tar.bz2
opensim-SC-0d17ba2a76d4eb01f0bd6097c3974cd9d9fb2061.tar.xz
* refactor: Attach a scene object to a scene separately from its construction
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-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 {