Mantis#1569. Thank you kindly, Nebadon for a patch that

addresses: Rotation of terrains varies between all the formats, 
Raw and R32 seem to be the same, while PNG, JPG, BMP all seem 
to be rotated 180 degrees different.
0.6.0-stable
Charles Krinke 2008-06-23 20:15:39 +00:00
parent ca7aac1c27
commit 8f5a8e4f9f
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders
int y;
for (y = 0; y < file.Height; y++)
{
retval[x, y] = file.GetPixel(x, y).GetBrightness() * 128;
retval[x, y] = file.GetPixel(x, file.Height - y - 1).GetBrightness() * 128;
}
}
@ -170,4 +170,4 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders
return bmp;
}
}
}
}