mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:09:03 +08:00
Fix typing
This commit is contained in:
parent
3c4d29a814
commit
4579b06f6d
@ -94,6 +94,9 @@ class IntentModel(ListModel):
|
||||
## Get the active materials for all extruders. No duplicates will be returned
|
||||
def _get_active_materials(self) -> Set[MaterialNode]:
|
||||
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
|
||||
if global_stack is None:
|
||||
return set()
|
||||
|
||||
container_tree = ContainerTree.getInstance()
|
||||
machine_node = container_tree.machines[global_stack.definition.getId()]
|
||||
nodes = set() # type: Set[MaterialNode]
|
||||
|
Loading…
x
Reference in New Issue
Block a user