mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Fixed world map image generator. Has to be run manually right now, but automatic generation is on the cards.
This commit is contained in:
@@ -422,14 +422,14 @@ namespace OpenSim.Terrain
|
||||
{
|
||||
Bitmap gradientmapLd = new Bitmap(gradientmap);
|
||||
|
||||
int pallete = gradientmapLd.Width;
|
||||
int pallete = gradientmapLd.Height;
|
||||
|
||||
Bitmap bmp = new Bitmap(heightmap.w, heightmap.h);
|
||||
Color[] colours = new Color[pallete];
|
||||
|
||||
for (int i = 0; i < pallete; i++)
|
||||
{
|
||||
colours[i] = gradientmapLd.GetPixel(1, i);
|
||||
colours[i] = gradientmapLd.GetPixel(0, i);
|
||||
}
|
||||
|
||||
Channel copy = heightmap.copy();
|
||||
|
||||
Reference in New Issue
Block a user