1
0
Fork 0

bug: Small fixes after initial check

This commit is contained in:
Joost De Cock 2018-12-29 09:03:11 +01:00
parent a0b17a62bb
commit 13a71986e4
5 changed files with 15 additions and 5 deletions

View file

@ -35,6 +35,10 @@ export default part => {
.length()
);
// Hip shaping
points.hips = points.hips.shift(180, store.get("hipsReduction") / 4);
points.hem = points.hem.shift(180, store.get("hipsReduction") / 4);
// Waist shaping
let reduce = store.get("waistReduction");
if (reduce / 4 > options.minimalDartShaping) {

View file

@ -35,6 +35,10 @@ export default part => {
.length()
);
// Hip shaping
points.hips = points.hips.shift(180, store.get("hipsReduction") / 4);
points.hem = points.hem.shift(180, store.get("hipsReduction") / 4);
// Waist shaping
let reduce = store.get("waistReduction");
if (reduce / 4 > options.minimalDartShaping) reduce = reduce / 8;

View file

@ -7,6 +7,7 @@ export const calculateReduction = function(part) {
let hips = measurements.hipsCircumference * (1 + options.hipsEase);
let waistReduction = chest - waist;
let hipsReduction = chest - hips;
console.log("hipsEase", options.hipsEase, hips, hipsReduction);
// If your waist > chest, this pattern is not going to work for you as-is.
if (waistReduction < 0) waistReduction = 0;