When a new reslices is triggered the old data is removed

This commit is contained in:
Jaime van Kessel 2015-09-16 15:56:37 +02:00
parent dbb281831c
commit fccf365424

View file

@ -158,7 +158,13 @@ class CuraEngineBackend(Backend):
self._message.hide()
self._message = None
return #No slicing if we have error values since those are by definition illegal values.
# Remove existing layer data (if any)
for node in DepthFirstIterator(self._scene.getRoot()):
if type(node) is SceneNode and node.getMeshData():
if node.callDecoration("getLayerData"):
Application.getInstance().getController().getScene().getRoot().removeChild(node)
break
Application.getInstance().getController().getScene().gcode_list = None
self._slicing = True
self.slicingStarted.emit()