aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-31 23:56:26 +0100
committerJustin Clark-Casey (justincc)2011-03-31 23:56:26 +0100
commit4d0cffa06e1c4071d137834e1d5c2cd06c933441 (patch)
treed9fdd020d776c1329a0236722946c2b69250dd2b /OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
parentsuspend check that IAR control file is loaded for now (diff)
downloadopensim-SC_OLD-4d0cffa06e1c4071d137834e1d5c2cd06c933441.zip
opensim-SC_OLD-4d0cffa06e1c4071d137834e1d5c2cd06c933441.tar.gz
opensim-SC_OLD-4d0cffa06e1c4071d137834e1d5c2cd06c933441.tar.bz2
opensim-SC_OLD-4d0cffa06e1c4071d137834e1d5c2cd06c933441.tar.xz
If the prim count gets an object with invalid bounds, don't try to count it.
This appears to be the more probable explanation for some failures seen. Either we're counting attachments which are temporarily out of bounds (shouldn't be due to the IsAttachment) check or we're counting scene objects which have out of bounds co-ordinates (seems more likely)
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
index d1e2328..f07ae31 100644
--- a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
@@ -183,6 +183,11 @@ namespace OpenSim.Region.CoreModules.World.Land
183 183
184 Vector3 pos = obj.AbsolutePosition; 184 Vector3 pos = obj.AbsolutePosition;
185 ILandObject landObject = m_Scene.LandChannel.GetLandObject(pos.X, pos.Y); 185 ILandObject landObject = m_Scene.LandChannel.GetLandObject(pos.X, pos.Y);
186
187 // If for some reason there is no land object (perhaps the object is out of bounds) then we can't count it
188 if (landObject == null)
189 return;
190
186 LandData landData = landObject.LandData; 191 LandData landData = landObject.LandData;
187 192
188// m_log.DebugFormat( 193// m_log.DebugFormat(