mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* Fixes Terrain issues with combined regions.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user