mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix metadata checking
This commit is contained in:
parent
60c7a3d3b7
commit
bc4809d8f8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue