Use the source_folder as a rootfor materials

Contributes to CURA-10951
This commit is contained in:
Jelle Spijker 2023-08-29 15:25:32 +02:00
parent 89fe3d2777
commit 2f2b88fd24

View File

@ -376,7 +376,7 @@ class CuraConan(ConanFile):
# Copy materials (flat) # Copy materials (flat)
rmdir(self, os.path.join(self.source_folder, "resources", "materials")) rmdir(self, os.path.join(self.source_folder, "resources", "materials"))
fdm_materials = self.dependencies["fdm_materials"].cpp_info fdm_materials = self.dependencies["fdm_materials"].cpp_info
copy(self, "*", fdm_materials.resdirs[0], str(self._share_dir.joinpath("cura"))) copy(self, "*", fdm_materials.resdirs[0], self.source_folder)
# Copy internal resources # Copy internal resources
if self.options.internal: if self.options.internal: