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
parent
ca7aac1c27
commit
8f5a8e4f9f
|
@ -67,7 +67,7 @@ namespace OpenSim.Region.Environment.Modules.World.Terrain.FileLoaders
|
||||||
int y;
|
int y;
|
||||||
for (y = 0; y < file.Height; 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;
|
return bmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue