mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix typing
This commit is contained in:
parent
6e625b2cf8
commit
472e6e88c3
1 changed files with 2 additions and 0 deletions
|
@ -60,6 +60,8 @@ class MachineSettingsAction(MachineAction):
|
||||||
# flavour setting is changed.
|
# flavour setting is changed.
|
||||||
def _updateHasMaterialsInContainerTree(self) -> None:
|
def _updateHasMaterialsInContainerTree(self) -> None:
|
||||||
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
||||||
|
if global_stack is None:
|
||||||
|
return
|
||||||
machine_node = ContainerTree.getInstance().machines[global_stack.definition.getId()]
|
machine_node = ContainerTree.getInstance().machines[global_stack.definition.getId()]
|
||||||
|
|
||||||
if machine_node.has_materials != parseBool(global_stack.getMetaDataEntry("has_materials")): # May have changed due to the g-code flavour.
|
if machine_node.has_materials != parseBool(global_stack.getMetaDataEntry("has_materials")): # May have changed due to the g-code flavour.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue