Activate the material right after it was created or duplicated.

Contributes to CURA-5682.
This commit is contained in:
Diego Prado Gesto 2018-09-12 16:35:01 +02:00
parent 921b11974c
commit 6183a07d76

View File

@ -91,10 +91,11 @@ Item
onItemsChanged: onItemsChanged:
{ {
var correctlyExpanded = materialList.expandActiveMaterial(base.newRootMaterialIdToSwitchTo) var correctlyExpanded = materialList.expandActiveMaterial(base.newRootMaterialIdToSwitchTo)
// if (base.toActivateNewMaterial) if (base.toActivateNewMaterial)
// { {
// Cura.MachineManager.setMaterial(position, material.container_node) var position = Cura.ExtruderManager.activeExtruderIndex
// } Cura.MachineManager.setMaterial(position, base.currentItem.container_node)
}
base.newRootMaterialIdToSwitchTo = "" base.newRootMaterialIdToSwitchTo = ""
base.toActivateNewMaterial = false base.toActivateNewMaterial = false
} }