Added update to for Instance container to re calculate values and validate

CURA-4447
This commit is contained in:
A.Sasin 2017-10-17 15:01:49 +02:00
parent 276232dae5
commit 85f2a7c385
2 changed files with 20 additions and 5 deletions

View file

@ -415,6 +415,20 @@ class CuraApplication(QtApplication):
global_stack.getTop().clear()
# if the user decided to keep settings then the user settings should be re-calculated and validated for errors
# before slicing. To ensure that slicer uses right settings values
elif option == "keep":
global_stack = self.getGlobalContainerStack()
for extruder in ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()):
user_extruder_container = extruder.getTop()
if user_extruder_container:
user_extruder_container.update()
user_global_container = global_stack.getTop()
if user_global_container:
user_global_container.update()
@pyqtSlot(int)
def messageBoxClosed(self, button):
if self._message_box_callback: