Fix regression causing thin walls to come out as zigzag paths. #1573 #1575
Partially revert cacbaa73191d967e7aa589f4f07df32039de2f43: no need for it in master branch