mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
We now ask the stack for the position (instead of definition)
This commit is contained in:
parent
5d19113f8e
commit
f51cffdf2e
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
||||||
material = extruder.findContainer({ "type": "material" })
|
material = extruder.findContainer({ "type": "material" })
|
||||||
if material:
|
if material:
|
||||||
extruder_name = "%s (%s)" % (material.getName(), extruder_name)
|
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:
|
try:
|
||||||
position = int(position)
|
position = int(position)
|
||||||
except ValueError: #Not a proper int.
|
except ValueError: #Not a proper int.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue