Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj.delarago <joeydelarago@gmail.com>2022-06-07 14:41:54 +0300
committerj.delarago <joeydelarago@gmail.com>2022-06-07 14:41:54 +0300
commitefeb29c734bb0d9a8094f6e8b9820aabda665ec8 (patch)
tree1c59b03a7f9fc26d8b44e9913a36350f42f5029b /cura/CuraPackageManager.py
parentd2381f129febc9cc5ca813e2965d8b1390579bc8 (diff)
Fix call to plugin that was causing errors when building
CURA-8610
Diffstat (limited to 'cura/CuraPackageManager.py')
-rw-r--r--cura/CuraPackageManager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py
index 720406fbc6..e23ed47ffa 100644
--- a/cura/CuraPackageManager.py
+++ b/cura/CuraPackageManager.py
@@ -5,13 +5,13 @@ import os
from typing import Any, cast, Dict, List, Set, Tuple, TYPE_CHECKING, Optional
from UM.Logger import Logger
+from UM.PluginRegistry import PluginRegistry
from cura.CuraApplication import CuraApplication # To find some resource types.
from cura.Settings.GlobalStack import GlobalStack
from UM.PackageManager import PackageManager # The class we're extending.
from UM.Resources import Resources # To find storage paths for some resource types.
from UM.i18n import i18nCatalog
-from plugins.XmlMaterialProfile.XmlMaterialProfile import XmlMaterialProfile
catalog = i18nCatalog("cura")
@@ -68,7 +68,8 @@ class CuraPackageManager(PackageManager):
with open(root + "/" + file_name, encoding="utf-8") as f:
# Make sure the file we found has the same guid as our material
# Parsing this xml would be better but the namespace is needed to search it.
- parsed_guid = XmlMaterialProfile.getMetadataFromSerialized(f.read(), "GUID")
+ parsed_guid = PluginRegistry.getInstance().getPluginObject("XmlMaterialProfile").getMetadataFromSerialized(
+ f.read(), "GUID")
if guid == parsed_guid:
return package_id