Move removeMaterial to MaterialManagementModel

Moving away from the MaterialManager.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-27 14:53:50 +02:00
parent 99ccddefa4
commit 3dc7c7b61c
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
4 changed files with 21 additions and 4 deletions

View file

@ -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);
}
}

View file

@ -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
}