mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Move removeMaterial to MaterialManagementModel
Moving away from the MaterialManager. Contributes to issue CURA-6600.
This commit is contained in:
parent
99ccddefa4
commit
3dc7c7b61c
4 changed files with 21 additions and 4 deletions
|
@ -302,7 +302,7 @@ Item
|
|||
{
|
||||
// Set the active material as the fallback. It will be selected when the current material is deleted
|
||||
base.newRootMaterialIdToSwitchTo = base.active_root_material_id
|
||||
base.materialManager.removeMaterial(base.currentItem.container_node);
|
||||
base.materialManagement.removeMaterial(base.currentItem.container_node);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -565,7 +565,7 @@ TabView
|
|||
}
|
||||
|
||||
// update the values
|
||||
base.materialManagement.setMaterialName(base.currentMaterialNode, new_name)
|
||||
materialManagement.setMaterialName(base.currentMaterialNode, new_name)
|
||||
properties.name = new_name
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue