From 39c8db8eb1cbfdefc120b1bf5f5aef45f9635509 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 27 Jun 2018 23:14:26 +0100 Subject: [PATCH] ubOde change terrain min height to -100m. Maybe this way a viewer dev mays fix rendering below 0m, like making them think z = 1m for that purpose, for example --- OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs index e4397e322d..fe11505a8d 100644 --- a/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs +++ b/OpenSim/Region/PhysicsModules/ubOde/ODEScene.cs @@ -2170,8 +2170,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde yy += regionsizeX; val = heightMap[yy + xx]; - if (val < 0.0f) - val = 0.0f; // no neg terrain as in chode + if (val < -100.0f) + val = -100.0f; _heightmap[xt + y] = val; if (hfmin > val) @@ -2279,8 +2279,8 @@ namespace OpenSim.Region.PhysicsModule.ubOde xx++; val = heightMap[yy + xx]; - if (val < 0.0f) - val = 0.0f; // no neg terrain as in chode + if (val < -100.0f) + val = -100.0f; _heightmap[yt + x] = val; if (hfmin > val)