* Fixes Terrain issues with combined regions.

This commit is contained in:
Teravus Ovares (Dan Olivares)
2009-08-20 23:26:40 -04:00
parent c9b52cd0b6
commit 64dcb71c14
2 changed files with 137 additions and 74 deletions

View File

@@ -232,17 +232,12 @@ namespace OpenSim.Region.Physics.OdePlugin
*/
// Exclude heightfield geom
if (g1 == m_scene.LandGeom)
if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
return;
if (g2 == m_scene.LandGeom)
if (d.GeomGetClass(g1) == d.GeomClassID.HeightfieldClass || d.GeomGetClass(g2) == d.GeomClassID.HeightfieldClass)
return;
if (g1 == m_scene.WaterGeom)
return;
if (g2 == m_scene.WaterGeom)
return;
// Raytest against AABBs of spaces first, then dig into the spaces it hits for actual geoms.
if (d.GeomIsSpace(g1) || d.GeomIsSpace(g2))
{