Solved (with an ugly fix) that after loading some projects, 'Slicing...' appears without doing anything. CURA-1263

This commit is contained in:
Jack Ha 2016-12-14 16:52:49 +01:00
parent a6194aa2cf
commit a9a9390aa6
5 changed files with 13 additions and 1 deletions

View file

@ -230,6 +230,10 @@ Item {
}
// Setting does have a limit_to_extruder property, so use that one instead.
if (definition.key === undefined) {
// Observed when loading workspace, probably when SettingItems are removed.
return false;
}
return Cura.SettingInheritanceManager.getOverridesForExtruder(definition.key, globalPropertyProvider.properties.limit_to_extruder).indexOf(definition.key) >= 0;
}