* Added a check for Infinite or NaN values before updating a heightfield. This may slow down terraforming when it debug mode - feedback appreciated.
parent
9fca0aca64
commit
e2ce142669
|
@ -129,6 +129,10 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain
|
||||||
get { return map[x, y]; }
|
get { return map[x, y]; }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
// Will "fix" terrain hole problems. Although not fantastically.
|
||||||
|
if(Double.IsNaN(value) || Double.IsInfinity(value))
|
||||||
|
return;
|
||||||
|
|
||||||
if (map[x, y] != value)
|
if (map[x, y] != value)
|
||||||
{
|
{
|
||||||
taint[x / 16, y / 16] = true;
|
taint[x / 16, y / 16] = true;
|
||||||
|
|
Loading…
Reference in New Issue