D6: Moved backend pausing to itself

This commit is contained in:
Victor Larchenko 2016-12-13 13:58:33 +06:00 committed by Youness Alaoui
parent b967f045fe
commit cb428c70de
2 changed files with 23 additions and 17 deletions

View file

@ -585,16 +585,10 @@ class CuraApplication(QtApplication):
def updatePlatformActivity(self, node = None):
count = 0
scene_bounding_box = None
should_pause = False
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
if type(node) is not SceneNode or (not node.getMeshData() and not node.callDecoration("isBlockSlicing")):
continue
if node.callDecoration("isBlockSlicing"):
should_pause = True
gcode_list = node.callDecoration("getGCodeList")
if gcode_list is not None:
self.getController().getScene().gcode_list = gcode_list
count += 1
if not scene_bounding_box:
scene_bounding_box = node.getBoundingBox()
@ -603,16 +597,6 @@ class CuraApplication(QtApplication):
if other_bb is not None:
scene_bounding_box = scene_bounding_box + node.getBoundingBox()
print_information = self.getPrintInformation()
if should_pause:
self.getBackend().pauseSlicing()
if print_information:
print_information.setPreSliced(True)
else:
self.getBackend().continueSlicing()
if print_information:
print_information.setPreSliced(False)
if not scene_bounding_box:
scene_bounding_box = AxisAlignedBox.Null