aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/NHibernateRegionData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateRegionData.cs')
-rw-r--r--OpenSim/Data/NHibernate/NHibernateRegionData.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Data/NHibernate/NHibernateRegionData.cs b/OpenSim/Data/NHibernate/NHibernateRegionData.cs
index ecb29fe..833f1b7 100644
--- a/OpenSim/Data/NHibernate/NHibernateRegionData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateRegionData.cs
@@ -195,8 +195,7 @@ namespace OpenSim.Data.NHibernate
195 // root part 195 // root part
196 if (p.UUID == uuid) 196 if (p.UUID == uuid)
197 { 197 {
198 group.AddPart(p); 198 group.SetRootPart(p);
199 group.RootPart = p;
200 } 199 }
201 else 200 else
202 { 201 {
@@ -244,8 +243,7 @@ namespace OpenSim.Data.NHibernate
244 if (p.UUID == p.ParentUUID) 243 if (p.UUID == p.ParentUUID)
245 { 244 {
246 SceneObjectGroup group = new SceneObjectGroup(); 245 SceneObjectGroup group = new SceneObjectGroup();
247 group.AddPart(p); 246 group.SetRootPart(p);
248 group.RootPart = p;
249 SOG.Add(p.ParentUUID, group); 247 SOG.Add(p.ParentUUID, group);
250 } 248 }
251 else 249 else