mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
We now ask the stack for the position (instead of definition)
This commit is contained in:
parent
5d19113f8e
commit
f51cffdf2e
@ -120,7 +120,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
||||
material = extruder.findContainer({ "type": "material" })
|
||||
if material:
|
||||
extruder_name = "%s (%s)" % (material.getName(), extruder_name)
|
||||
position = extruder.getBottom().getMetaDataEntry("position", default = "0") #Position in the definition.
|
||||
position = extruder.getMetaDataEntry("position", default = "0") # Get the position
|
||||
try:
|
||||
position = int(position)
|
||||
except ValueError: #Not a proper int.
|
||||
|
Loading…
x
Reference in New Issue
Block a user