From 83da85efd3584945b7c4e4fd4836afb7debae35c Mon Sep 17 00:00:00 2001 From: "ant..om" Date: Fri, 10 Jun 2011 21:21:21 +0000 Subject: [PATCH] bugfix: heightmap.setHeightScale is set from grid's heightscale instead of constant 256f git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7570 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/terrain/heightmap/FractalHeightMapGrid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/terrain/com/jme3/terrain/heightmap/FractalHeightMapGrid.java b/engine/src/terrain/com/jme3/terrain/heightmap/FractalHeightMapGrid.java index 26c84196b..ce35c1b4c 100644 --- a/engine/src/terrain/com/jme3/terrain/heightmap/FractalHeightMapGrid.java +++ b/engine/src/terrain/com/jme3/terrain/heightmap/FractalHeightMapGrid.java @@ -49,7 +49,7 @@ public class FractalHeightMapGrid implements HeightMapGrid { BufferedImage im = null; im = ImageIO.read(new File(this.cacheDir, "terrain_" + (int) location.x + "_" + (int) location.z + ".png")); heightmap = new Grayscale16BitHeightMap(im); - heightmap.setHeightScale(256); + heightmap.setHeightScale(heightScale); } catch (IOException e) {} } else { FloatBuffer buffer = this.base.getBuffer(location.x * (this.size - 1), location.z * (this.size - 1), 0, this.size);