Move setMaterialName() into MaterialManager

This commit is contained in:
Lipu Fei 2018-03-02 16:22:22 +01:00
parent f7377e6321
commit c6128ef5ba
4 changed files with 22 additions and 13 deletions

View file

@ -12,6 +12,8 @@ TabView
{
id: base
property QtObject materialManager: CuraApplication.getMaterialManager()
property QtObject properties
property var currentMaterialNode: null
@ -497,7 +499,7 @@ TabView
}
// update the values
Cura.ContainerManager.setMaterialName(base.currentMaterialNode, new_name)
base.materialManager.setMaterialName(base.currentMaterialNode, new_name)
materialProperties.name = new_name
}