1
0
Fork 0

fix: Rename removeGrainline to removeGrain

This commit is contained in:
Joost De Cock 2023-11-20 15:44:59 +01:00
parent bc2a82c8d9
commit 4689f56626
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ export const cutonfoldDefs = [
* The rmcutonfold macro
*/
const rmcutonfold = (id = macroDefaults.id, { store, part }) => {
if (store.cutlist.getGrainOrigin() === 'cutonfold') store.cutlist.removeGrainline()
if (store.cutlist.getGrainOrigin() === 'cutonfold') store.cutlist.removeGrain()
store.cutlist.removeCutOnFold()
return store.removeMacroNodes(id, 'cutonfold', part)

View file

@ -33,7 +33,7 @@ export const grainlineDefs = [
* The rmgrainline macro
*/
const rmgrainline = (id = macroDefaults.id, { store, part }) => {
if (store.cutlist.getGrainOrigin() === 'grainline') store.cutlist.removeGrainline()
if (store.cutlist.getGrainOrigin() === 'grainline') store.cutlist.removeGrain()
return store.removeMacroNodes(id, 'grainline', part)
}