1
0
Fork 0

fix(hugo): Do not render pocket facing hint when complete is falsy

This commit is contained in:
Joost De Cock 2020-04-18 17:52:32 +02:00
parent eb4764d1d6
commit 3565035ff4

View file

@ -1,4 +1,4 @@
export default function(part) {
export default function (part) {
// Remove clutter
let pocket = part.paths.pocket
part.paths = {}
@ -17,10 +17,8 @@ export default function(part) {
debug
} = part.shorthand()
paths.seam = pocket
.line(points.cfRibbing)
.line(points.pocketHem)
.attr('class', 'fabric', true)
paths.seam = pocket.line(points.cfRibbing).line(points.pocketHem).attr('class', 'fabric', true)
paths.seam.render = true
store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2)
@ -41,9 +39,11 @@ export default function(part) {
.line(facing.start())
.join(facing)
.attr('class', ' fabric help')
paths.facing.render = false
// Complete pattern?
if (complete) {
paths.facing.render = true
macro('grainline', {
from: points.cfRibbing.shift(0, 15),
to: points.pocketCf.shift(0, 15)