1
0
Fork 0

wrench: Changed block part names to base

This commit is contained in:
Joost De Cock 2019-03-03 17:52:26 +01:00
parent 31a10134e1
commit 364db01e75
2 changed files with 17 additions and 17 deletions

View file

@ -18,25 +18,25 @@ export default {
"wristCircumference" "wristCircumference"
], ],
dependencies: { dependencies: {
backBlock: "base", backBase: "base",
frontBlock: "backBlock", frontBase: "backBase",
sleevecap: "frontBlock", sleevecap: "frontBase",
sleeveBlock: "sleevecap", sleeveBase: "sleevecap",
back: "backBlock", back: "backBase",
front: "frontBlock", front: "frontBase",
sleeve: "sleeveBlock", sleeve: "sleeveBase",
pocket: "front" pocket: "front"
}, },
inject: { inject: {
backBlock: "base", backBase: "base",
frontBlock: "backBlock", frontBase: "backBase",
sleeveBlock: "sleevecap", sleeveBase: "sleevecap",
back: "backBlock", back: "backBase",
front: "frontBlock", front: "frontBase",
sleeve: "sleeveBlock", sleeve: "sleeveBase",
pocket: "front" pocket: "front"
}, },
hide: ["base", "sleevecap", "backBlock", "frontBlock", "sleeveBlock"], hide: ["base", "sleevecap", "backBase", "frontBase", "sleeveBase"],
parts: ["hood", "waistband", "cuff"], parts: ["hood", "waistband", "cuff"],
options: { options: {
// Constants // Constants

View file

@ -18,16 +18,16 @@ const Huey = new freesewing.Design(config, plugins);
Huey.prototype.draftBase = function(part) { Huey.prototype.draftBase = function(part) {
return new Brian(this.settings).draftBase(part); return new Brian(this.settings).draftBase(part);
}; };
Huey.prototype.draftFrontBlock = function(part) { Huey.prototype.draftFrontBase = function(part) {
return new Brian(this.settings).draftFront(part); return new Brian(this.settings).draftFront(part);
}; };
Huey.prototype.draftBackBlock = function(part) { Huey.prototype.draftBackBase = function(part) {
return new Brian(this.settings).draftBack(part); return new Brian(this.settings).draftBack(part);
}; };
Huey.prototype.draftSleevecap = function(part) { Huey.prototype.draftSleevecap = function(part) {
return new Brian(this.settings).draftSleevecap(part); return new Brian(this.settings).draftSleevecap(part);
}; };
Huey.prototype.draftSleeveBlock = function(part) { Huey.prototype.draftSleeveBase = function(part) {
return new Brian(this.settings).draftSleeve(part); return new Brian(this.settings).draftSleeve(part);
}; };