mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix two if statements which caused POS settings to be unselectable
This commit is contained in:
parent
d7102729f1
commit
c8c4fe65cf
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ class PerObjectSettingVisibilityHandler(UM.Settings.Models.SettingVisibilityHand
|
||||||
|
|
||||||
# Add all instances that are not added, but are in visibility list
|
# Add all instances that are not added, but are in visibility list
|
||||||
for item in visible:
|
for item in visible:
|
||||||
if settings.getInstance(item) is not None: # Setting was not added already.
|
if settings.getInstance(item) is None: # Setting was not added already.
|
||||||
definition = self._stack.getSettingDefinition(item)
|
definition = self._stack.getSettingDefinition(item)
|
||||||
if definition:
|
if definition:
|
||||||
new_instance = SettingInstance(definition, settings)
|
new_instance = SettingInstance(definition, settings)
|
||||||
|
|
|
@ -97,7 +97,7 @@ class PerObjectSettingsTool(Tool):
|
||||||
|
|
||||||
for property_key in ["top_bottom_thickness", "wall_thickness"]:
|
for property_key in ["top_bottom_thickness", "wall_thickness"]:
|
||||||
if mesh_type == "infill_mesh":
|
if mesh_type == "infill_mesh":
|
||||||
if not settings.getInstance(property_key):
|
if settings.getInstance(property_key) is None:
|
||||||
definition = stack.getSettingDefinition(property_key)
|
definition = stack.getSettingDefinition(property_key)
|
||||||
new_instance = SettingInstance(definition, settings)
|
new_instance = SettingInstance(definition, settings)
|
||||||
new_instance.setProperty("value", 0)
|
new_instance.setProperty("value", 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue