Fix protected variable access

This commit is contained in:
Lipu Fei 2018-03-05 10:22:11 +01:00
parent 6a14e39610
commit 1e467b66c0

View file

@ -59,7 +59,7 @@ class XmlMaterialProfile(InstanceContainer):
return return
# Get the MaterialGroup # Get the MaterialGroup
material_manager = CuraApplication.getInstance()._material_manager material_manager = CuraApplication.getInstance().getMaterialManager()
root_material_id = self.getMetaDataEntry("base_file") #if basefile is self.getId, this is a basefile. root_material_id = self.getMetaDataEntry("base_file") #if basefile is self.getId, this is a basefile.
material_group = material_manager.getMaterialGroup(root_material_id) material_group = material_manager.getMaterialGroup(root_material_id)