HeightfieldTesselator "bug"

Hi,

in the manual on HeightfieldTesselator::get_elevation, it says that the vertical scale is taken into account. But this is not the case, I always get values between 0 and 1.

Just a minor bug, but I think it’s still worth fixing :wink:

Thats right, I also noticed that.

To fix, it’s as easy as changing line 101 of panda/src/grutil/heightfieldTesselator.cxx from:

  return lerpyh * yoffs + lerpyl * (1.0 - yoffs);

to:

  return _vertical_scale * (lerpyh * yoffs + lerpyl * (1.0 - yoffs));