mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 15:23:14 +08:00
Fix making settings visible if the default was 0
If the default was 0, then the if statement would evaluate as False and it would not make them visible until you closed and re-opened the panel. Contributes to issue CURA-7211.
This commit is contained in:
parent
3b235d5536
commit
a776f54e7f
@ -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 not settings.getInstance(item): # Setting was not added already.
|
if settings.getInstance(item) is not 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user