Changes to make um2 upgrade work with new stack changes

CURA-3742
This commit is contained in:
Jaime van Kessel 2017-05-08 15:03:39 +02:00
parent 293f1ac029
commit bd25448021
2 changed files with 9 additions and 9 deletions

View file

@ -773,9 +773,8 @@ class MachineManager(QObject):
old_material = self._active_container_stack.material
if old_variant:
self.blurSettings.emit()
variant_index = self._active_container_stack.getContainerIndex(old_variant)
self._active_container_stack.replaceContainer(variant_index, containers[0])
Logger.log("d", "Active variant changed")
self._active_container_stack.variant = containers[0]
Logger.log("d", "Active variant changed to {active_variant_id}".format(active_variant_id = containers[0].getId()))
preferred_material = None
if old_material:
preferred_material_name = old_material.getName()