Browse Source

Fix protected variable access

Lipu Fei 7 years ago
parent
commit
1e467b66c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/XmlMaterialProfile/XmlMaterialProfile.py

+ 1 - 1
plugins/XmlMaterialProfile/XmlMaterialProfile.py

@@ -59,7 +59,7 @@ class XmlMaterialProfile(InstanceContainer):
             return
 
         # 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.
         material_group = material_manager.getMaterialGroup(root_material_id)