mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Fix typing
This commit is contained in:
parent
3c4d29a814
commit
4579b06f6d
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue