mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Ignore any additional stacks in imported profile
When you import a multi-extrusion file into a single-extrusion printer, don't crash but simply ignore the additional stacks. Contributes to issue CURA-4715.
This commit is contained in:
parent
039c85677a
commit
c6a2b1b9c9
1 changed files with 3 additions and 0 deletions
|
@ -252,6 +252,9 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||
profile.setMetaDataEntry("extruder", extruder_id)
|
||||
profile_id = (extruder_id + "_" + name_seed).lower().replace(" ", "_")
|
||||
|
||||
else: #More extruders in the imported file than in the machine.
|
||||
continue #Delete the additional profiles.
|
||||
|
||||
result = self._configureProfile(profile, profile_id, new_name)
|
||||
if result is not None:
|
||||
return {"status": "error", "message": catalog.i18nc(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue