mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 06:48:58 +08:00
Fix typing
This commit is contained in:
parent
6e625b2cf8
commit
472e6e88c3
@ -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…
x
Reference in New Issue
Block a user