mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user