Make sure the position of the heightfield/voxel brush is valid before acting.