mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Merge branch 'master' of github.com:Ultimaker/Cura into network_rewrite
This commit is contained in:
commit
c28c20dbd7
24 changed files with 326 additions and 222 deletions
|
@ -499,10 +499,6 @@ class MachineManager(QObject):
|
|||
def activeVariantNames(self) -> List[str]:
|
||||
result = []
|
||||
|
||||
# it can happen when there is no active machine
|
||||
if self._global_container_stack is None:
|
||||
return result
|
||||
|
||||
active_stacks = ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks()
|
||||
if active_stacks is not None:
|
||||
for stack in active_stacks:
|
||||
|
@ -516,10 +512,6 @@ class MachineManager(QObject):
|
|||
def activeMaterialNames(self) -> List[str]:
|
||||
result = []
|
||||
|
||||
# it can happen when there is no active machine
|
||||
if self._global_container_stack is None:
|
||||
return result
|
||||
|
||||
active_stacks = ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks()
|
||||
if active_stacks is not None:
|
||||
for stack in active_stacks:
|
||||
|
@ -541,10 +533,6 @@ class MachineManager(QObject):
|
|||
def allActiveVariantIds(self) -> Dict[str, str]:
|
||||
result = {}
|
||||
|
||||
# it can happen when there is no active machine
|
||||
if self._global_container_stack is None:
|
||||
return result
|
||||
|
||||
active_stacks = ExtruderManager.getInstance().getActiveExtruderStacks()
|
||||
if active_stacks is not None: #If we have a global stack.
|
||||
for stack in active_stacks:
|
||||
|
@ -564,14 +552,7 @@ class MachineManager(QObject):
|
|||
def allActiveMaterialIds(self) -> Dict[str, str]:
|
||||
result = {}
|
||||
|
||||
# it can happen when there is no active machine
|
||||
if self._global_container_stack is None:
|
||||
return result
|
||||
|
||||
active_stacks = ExtruderManager.getInstance().getActiveExtruderStacks()
|
||||
|
||||
result[self._global_container_stack.getId()] = self._global_container_stack.material.getId()
|
||||
|
||||
if active_stacks is not None: # If we have extruder stacks
|
||||
for stack in active_stacks:
|
||||
material_container = stack.material
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue