aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorHomer Horwitz2008-09-21 17:01:58 +0000
committerHomer Horwitz2008-09-21 17:01:58 +0000
commit0f020a7cd2c670928219a237a2d3b4f55e3b0af5 (patch)
tree8b6a826ee49b17c215d76f12d389aa9b3e9e662b
parent* Fix http://opensimulator.org/mantis/view.php?id=2189 (diff)
downloadopensim-SC-0f020a7cd2c670928219a237a2d3b4f55e3b0af5.zip
opensim-SC-0f020a7cd2c670928219a237a2d3b4f55e3b0af5.tar.gz
opensim-SC-0f020a7cd2c670928219a237a2d3b4f55e3b0af5.tar.bz2
opensim-SC-0f020a7cd2c670928219a237a2d3b4f55e3b0af5.tar.xz
Fix another reason for #2218
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index ff89ef9..08de087 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -1220,11 +1220,16 @@ namespace OpenSim.Region.Environment.Scenes
1220 /// <param name="part"></param> 1220 /// <param name="part"></param>
1221 internal void SendPartTerseUpdate(IClientAPI remoteClient, SceneObjectPart part) 1221 internal void SendPartTerseUpdate(IClientAPI remoteClient, SceneObjectPart part)
1222 { 1222 {
1223 if (m_rootPart.UUID == part.UUID) 1223 SceneObjectPart rootPart = m_rootPart;
1224
1225 // TODO: that could by caused by some race condition with attachments on sim-crossing
1226 if (rootPart == null) return;
1227
1228 if (rootPart.UUID == part.UUID)
1224 { 1229 {
1225 if (m_rootPart.IsAttachment) 1230 if (rootPart.IsAttachment)
1226 { 1231 {
1227 part.SendTerseUpdateToClient(remoteClient, m_rootPart.AttachedPos); 1232 part.SendTerseUpdateToClient(remoteClient, rootPart.AttachedPos);
1228 } 1233 }
1229 else 1234 else
1230 { 1235 {