Handle the case that resolve is undefined

CURA-6490
This commit is contained in:
Lipu Fei 2019-05-27 13:40:37 +02:00
parent 9793fc16a3
commit a14eb50fec
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ SettingItem
// 4: variant
// 5: machine
var value
if ((base.resolve != "None") && (stackLevel != 0) && (stackLevel != 1))
if ((base.resolve !== undefined && base.resolve != "None") && (stackLevel != 0) && (stackLevel != 1))
{
// We have a resolve function. Indicates that the setting is not settable per extruder and that
// we have to choose between the resolved value (default) and the global value