mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 16:51:12 -07:00
Activate the material right after it was created or duplicated.
Contributes to CURA-5682.
This commit is contained in:
parent
921b11974c
commit
6183a07d76
1 changed files with 5 additions and 4 deletions
|
|
@ -91,10 +91,11 @@ Item
|
|||
onItemsChanged:
|
||||
{
|
||||
var correctlyExpanded = materialList.expandActiveMaterial(base.newRootMaterialIdToSwitchTo)
|
||||
// if (base.toActivateNewMaterial)
|
||||
// {
|
||||
// Cura.MachineManager.setMaterial(position, material.container_node)
|
||||
// }
|
||||
if (base.toActivateNewMaterial)
|
||||
{
|
||||
var position = Cura.ExtruderManager.activeExtruderIndex
|
||||
Cura.MachineManager.setMaterial(position, base.currentItem.container_node)
|
||||
}
|
||||
base.newRootMaterialIdToSwitchTo = ""
|
||||
base.toActivateNewMaterial = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue