1
0
Fork 0

fix(simone): Don't do negative FBA. Closes #2121

This commit is contained in:
Joost De Cock 2022-07-09 17:05:00 +02:00
parent 02ba417a6e
commit 6f76474c7a
2 changed files with 15 additions and 1 deletions

View file

@ -11,6 +11,9 @@ Unreleased:
brian: brian:
- Make s3 options sticky to zero below 10% to avoid path split issues. - Make s3 options sticky to zero below 10% to avoid path split issues.
Fixes [#2249](https://github.com/freesewing/freesewing/issues/2249) Fixes [#2249](https://github.com/freesewing/freesewing/issues/2249)
simone:
- Don't do a negative FBA from there's no need for an FBA
Fixes [#2121](https://github.com/freesewing/freesewing/issues/2121)
wahid: wahid:
- Prevent facing/lining overlap when shoulders get very narrow - Prevent facing/lining overlap when shoulders get very narrow
fixes [#2233](https://github.com/freesewing/freesewing/issues/2233) fixes [#2233](https://github.com/freesewing/freesewing/issues/2233)

View file

@ -1,5 +1,5 @@
export default (part) => { export default (part) => {
let { const {
measurements, measurements,
Point, Point,
points, points,
@ -12,6 +12,7 @@ export default (part) => {
utils, utils,
sa, sa,
complete, complete,
raise
} = part.shorthand() } = part.shorthand()
/* /*
@ -31,6 +32,16 @@ export default (part) => {
* *
*/ */
const FBA = ((1 + options.chestEase) * (measurements.bust - measurements.highBust)) / 2 const FBA = ((1 + options.chestEase) * (measurements.bust - measurements.highBust)) / 2
/*
* If the FBA is negative, that means the high bust measurement is higher than the
* front bust. That's not uncommon for people who don't have much breast tissue but
* it generates a negative dart which is confusing and incorrect. So in that case, just
* return the original part from simon
*/
if (FBA < 0) {
raise.info('No FBA required, using unaltered Simon front')
return part
}
/* /*
* Locate bust point * Locate bust point