1
0
Fork 0

fix(plugin-title): Supress warning message if cutlist not defined

This commit is contained in:
Benjamin F 2023-05-03 19:11:21 -07:00
parent 92a51ec163
commit 39ad4bbef2

View file

@ -49,7 +49,7 @@ const titleMacro = function (so, { points, scale, locale, store, part }) {
} }
// Cut List instructions // Cut List instructions
const partCutlist = store.get(['cutlist', part.name]) const partCutlist = store.get(['cutlist', part.name], null)
// if there's a cutlist and it should be included // if there's a cutlist and it should be included
if (so.cutlist && partCutlist?.materials) { if (so.cutlist && partCutlist?.materials) {
// get the default cutonfold // get the default cutonfold