1
0
Fork 0

fix(albert): Avoid using hpsToWaistFront

- This measurement is not listed as a required measurement in the
   config, thereby making this pattern throw an error in the frontend
 - Furthermore, the `hpsToWaistFront` measurement is (currently)
   listed as a breasts-only measurement. Making it a required
   measurement would make this pattern a de-facto womenswear pattern.
   As that seems a bit weird for an apron, and the measurement was
   only used to construct the pocket, I simply swapped it for
   `hpsToWaistBack` (which was already a required measurement)
This commit is contained in:
Joost De Cock 2020-10-17 13:43:28 +02:00
parent 5cd5feaf25
commit 53a44559ea

View file

@ -15,7 +15,7 @@ export default function (part) {
} = part.shorthand()
let apronLength =
measurements.hpsToWaistFront * options.bibLength +
measurements.hpsToWaistBack * options.bibLength +
measurements.waistToKnee * (1 + options.lengthBonus)
let pocketSize = apronLength / 4
let hemWidth = 3 * sa