Slightly more defensive programming in case of extruder mismatch

This commit is contained in:
fieldOfView 2016-10-03 22:18:38 +02:00
parent 046d0b5956
commit 144dcb5a65

View file

@ -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