mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 15:05:54 +08:00
Add comment
CURA-8610
This commit is contained in:
parent
71a817697b
commit
ddb49ddba4
@ -60,6 +60,8 @@ class CuraPackageManager(PackageManager):
|
||||
def isMaterialBundled(self, file_name: str, guid: str):
|
||||
""" Check if there is a bundled material name with file_name and guid """
|
||||
for path in Resources.getSecureSearchPaths():
|
||||
# Secure search paths are install directory paths, if a material is in here it must be bundled.
|
||||
|
||||
paths = [Path(p) for p in glob.glob(path + '/**/*.xml.fdm_material')]
|
||||
for material in paths:
|
||||
if material.name == file_name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user