mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 03:16:04 +08:00
Remove unused incorrect code
The property is called activeMaterialIds, but it returns the stack ids. The code is superceeded by allActiveMaterialIds.
This commit is contained in:
parent
80cbdd03bb
commit
975e7f04b4
@ -504,16 +504,6 @@ class MachineManager(QObject):
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@pyqtProperty("QVariantList", notify = activeVariantChanged)
|
|
||||||
def activeMaterialIds(self):
|
|
||||||
result = []
|
|
||||||
if ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks() is not None:
|
|
||||||
for stack in ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks():
|
|
||||||
if stack.variant and stack.variant != self._empty_variant_container:
|
|
||||||
result.append(stack.variant.getId())
|
|
||||||
|
|
||||||
return result
|
|
||||||
|
|
||||||
@pyqtProperty("QVariantList", notify = activeMaterialChanged)
|
@pyqtProperty("QVariantList", notify = activeMaterialChanged)
|
||||||
def activeMaterialNames(self):
|
def activeMaterialNames(self):
|
||||||
result = []
|
result = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user