Fixed responsiveness of heightmapeditor. More optimisations.