mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
WIP: Fix activeMaterialsCompatible()
This commit is contained in:
parent
ec8ee6e31a
commit
6cd47453bb
1 changed files with 4 additions and 3 deletions
|
@ -1008,9 +1008,10 @@ class MachineManager(QObject):
|
||||||
|
|
||||||
def activeMaterialsCompatible(self):
|
def activeMaterialsCompatible(self):
|
||||||
# check material - variant compatibility
|
# check material - variant compatibility
|
||||||
for position, extruder in self._global_container_stack.extruders.items():
|
if Util.parseBool(self._global_container_stack.getMetaDataEntry("has_materials", False)):
|
||||||
if not extruder.material.getMetaDataEntry("compatible"):
|
for position, extruder in self._global_container_stack.extruders.items():
|
||||||
return False
|
if not extruder.material.getMetaDataEntry("compatible"):
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
## Update current quality type and machine after setting material
|
## Update current quality type and machine after setting material
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue