Fix missing extruder number

This commit is contained in:
Ian Paschal 2019-01-09 17:05:10 +01:00
parent 366d2c8114
commit 8831ba04e1

View file

@ -39,7 +39,7 @@ Item
{
color: modelData && modelData.activeMaterial ? modelData.activeMaterial.color : "#eeeeee" // TODO: Theme!
material: modelData && modelData.activeMaterial ? modelData.activeMaterial.name : ""
position: modelData && modelData.position ? modelData.position : -1 // Use negative one to create empty extruder number
position: modelData && typeof(modelData.position) === "number" ? modelData.position : -1 // Use negative one to create empty extruder number
printCore: modelData ? modelData.hotendID : ""
// Keep things responsive!