diff options
author | Justin Clark-Casey (justincc) | 2010-09-21 01:04:08 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-09-21 01:04:08 +0100 |
commit | 51207c24a03b2f5741a886b1d5daaac8d2231c93 (patch) | |
tree | 360c993fafd29a32cc132e8c62d390ccdab9e01e /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | Improve the explanative text of migration failures (diff) | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-51207c24a03b2f5741a886b1d5daaac8d2231c93.zip opensim-SC-51207c24a03b2f5741a886b1d5daaac8d2231c93.tar.gz opensim-SC-51207c24a03b2f5741a886b1d5daaac8d2231c93.tar.bz2 opensim-SC-51207c24a03b2f5741a886b1d5daaac8d2231c93.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 994b9e3..b655f39 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -330,8 +330,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
330 | get { return m_rootPart.UUID; } | 330 | get { return m_rootPart.UUID; } |
331 | set | 331 | set |
332 | { | 332 | { |
333 | m_rootPart.UUID = value; | 333 | lock (m_parts.SyncRoot) |
334 | m_parts.AddOrReplace(value, m_rootPart); | 334 | { |
335 | m_parts.Remove(m_rootPart.UUID); | ||
336 | m_rootPart.UUID = value; | ||
337 | m_parts.Add(value, m_rootPart); | ||
338 | } | ||
335 | } | 339 | } |
336 | } | 340 | } |
337 | 341 | ||