mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:05:54 +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:
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user