diff options
author | Justin Clarke Casey | 2008-11-10 20:04:55 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-10 20:04:55 +0000 |
commit | 0e180b0ad30d5f468be1c239865688449b8747cc (patch) | |
tree | 4d442315d268836641cb2b10e6937a0d308bdc18 /OpenSim/Data/NHibernate/NHibernateRegionData.cs | |
parent | Removed some debug output I forgot to remove... (diff) | |
download | opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.zip opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.tar.gz opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.tar.bz2 opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.tar.xz |
* refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
* Make RootPart read only
Diffstat (limited to 'OpenSim/Data/NHibernate/NHibernateRegionData.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/NHibernateRegionData.cs | 6 |
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 |