feat(plugin-grainline): Set part grain in macro
This commit is contained in:
parent
8ec441389b
commit
daddf5bb35
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ export default {
|
|||
delete this.points.grainlineFrom
|
||||
delete this.points.grainlineTo
|
||||
delete this.paths.grainline
|
||||
this.setGrain(90) // Restoring default
|
||||
return true
|
||||
}
|
||||
so = {
|
||||
|
@ -29,6 +30,7 @@ export default {
|
|||
...so,
|
||||
}
|
||||
let points = this.points
|
||||
this.setGrain(so.from.angle(so.to))
|
||||
points.grainlineFrom = so.from.shiftFractionTowards(so.to, 0.05)
|
||||
points.grainlineTo = so.to.shiftFractionTowards(so.from, 0.05)
|
||||
this.paths.grainline = new this.Path()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue