mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 12:49:10 +08:00
Slightly more defensive programming in case of extruder mismatch
This commit is contained in:
parent
046d0b5956
commit
144dcb5a65
@ -181,10 +181,10 @@ class CuraContainerRegistry(ContainerRegistry):
|
|||||||
self.addContainer(profile)
|
self.addContainer(profile)
|
||||||
ContainerManager.getInstance().mergeContainers(global_profile.getId(), profile.getId())
|
ContainerManager.getInstance().mergeContainers(global_profile.getId(), profile.getId())
|
||||||
self.removeContainer(profile.getId())
|
self.removeContainer(profile.getId())
|
||||||
continue
|
break
|
||||||
else:
|
else:
|
||||||
# The imported composite profile has a profile for an extruder that this machine does not have. Ignore this extruder-profile
|
# The imported composite profile has a profile for an extruder that this machine does not have. Ignore this extruder-profile
|
||||||
continue
|
break
|
||||||
else:
|
else:
|
||||||
global_profile = profile
|
global_profile = profile
|
||||||
profile_name = name_seed
|
profile_name = name_seed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user