fix(hugo): Do not render pocket facing hint when complete is falsy
This commit is contained in:
parent
eb4764d1d6
commit
3565035ff4
1 changed files with 5 additions and 5 deletions
|
@ -17,10 +17,8 @@ export default function(part) {
|
||||||
debug
|
debug
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
paths.seam = pocket
|
paths.seam = pocket.line(points.cfRibbing).line(points.pocketHem).attr('class', 'fabric', true)
|
||||||
.line(points.cfRibbing)
|
paths.seam.render = true
|
||||||
.line(points.pocketHem)
|
|
||||||
.attr('class', 'fabric', true)
|
|
||||||
|
|
||||||
store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2)
|
store.set('facingWidth', points.pocketHem.dist(points.pocketTip) / 2)
|
||||||
|
|
||||||
|
@ -41,9 +39,11 @@ export default function(part) {
|
||||||
.line(facing.start())
|
.line(facing.start())
|
||||||
.join(facing)
|
.join(facing)
|
||||||
.attr('class', ' fabric help')
|
.attr('class', ' fabric help')
|
||||||
|
paths.facing.render = false
|
||||||
|
|
||||||
// Complete pattern?
|
// Complete pattern?
|
||||||
if (complete) {
|
if (complete) {
|
||||||
|
paths.facing.render = true
|
||||||
macro('grainline', {
|
macro('grainline', {
|
||||||
from: points.cfRibbing.shift(0, 15),
|
from: points.cfRibbing.shift(0, 15),
|
||||||
to: points.pocketCf.shift(0, 15)
|
to: points.pocketCf.shift(0, 15)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue