Change mesh rebuilding to only happen when erosion is toggled off