1
0
Fork 0

fix(titan): Ensure a waistIn part in back

Fixes https://github.com/freesewing/freesewing/issues/855
This commit is contained in:
Joost De Cock 2021-02-14 16:19:49 +01:00
parent f7659d7e59
commit 6eb28b88c0

View file

@ -157,10 +157,11 @@ export default (part) => {
// Balance the waist
if (points.cbSeat.x < points.waistX.x) {
let delta = points.cbSeat.dx(points.waistX)
let width = points.waistX.x
points.waistIn = points.waistX.shift(180, delta * (1 - options.waistBalance))
console.log('balancing waist', points.waistIn)
} else points.waistIn = points.waistX
let width = points.waistX.x
points.waistOut = points.waistIn.shift(180, width)
}
// Cross seam
drawCrossSeam()