Fix two if statements which caused POS settings to be unselectable

This commit is contained in:
Nino van Hooff 2020-03-06 11:00:56 +01:00
parent d7102729f1
commit c8c4fe65cf
2 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ class PerObjectSettingsTool(Tool):
for property_key in ["top_bottom_thickness", "wall_thickness"]:
if mesh_type == "infill_mesh":
if not settings.getInstance(property_key):
if settings.getInstance(property_key) is None:
definition = stack.getSettingDefinition(property_key)
new_instance = SettingInstance(definition, settings)
new_instance.setProperty("value", 0)