diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2019-08-28 12:52:25 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2019-08-28 12:52:52 +0300 |
commit | bc4809d8f87022bf670da52c05449fd116c8cd08 (patch) | |
tree | 5e30a8b12e73cac87e496131b280a2c7aa6cf016 /plugins | |
parent | 60c7a3d3b72cc41a5c85dd159705c1f80b5c86e6 (diff) |
Fix metadata checking
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/MachineSettingsAction/MachineSettingsAction.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/MachineSettingsAction/MachineSettingsAction.py b/plugins/MachineSettingsAction/MachineSettingsAction.py index cddc4e5fe8..d48475b1e6 100755 --- a/plugins/MachineSettingsAction/MachineSettingsAction.py +++ b/plugins/MachineSettingsAction/MachineSettingsAction.py @@ -9,6 +9,7 @@ import UM.i18n from UM.FlameProfiler import pyqtSlot from UM.Settings.ContainerRegistry import ContainerRegistry from UM.Settings.DefinitionContainer import DefinitionContainer +from UM.Util import parseBool from cura.MachineAction import MachineAction from cura.Settings.CuraStackBuilder import CuraStackBuilder @@ -92,7 +93,7 @@ class MachineSettingsAction(MachineAction): return definition = global_stack.getDefinition() - if definition.getProperty("machine_gcode_flavor", "value") != "UltiGCode" or definition.getMetaDataEntry("has_materials", False): + if definition.getProperty("machine_gcode_flavor", "value") != "UltiGCode" or parseBool(definition.getMetaDataEntry("has_materials", False)): # In other words: only continue for the UM2 (extended), but not for the UM2+ return |