mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:05:51 +08:00
Activate the material right after it was created or duplicated.
Contributes to CURA-5682.
This commit is contained in:
parent
921b11974c
commit
6183a07d76
@ -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…
x
Reference in New Issue
Block a user