mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fixed process sliced layer job not deleting old data
This commit is contained in:
parent
1261cf975e
commit
4a5b2465ae
1 changed files with 3 additions and 4 deletions
|
@ -56,10 +56,9 @@ class ProcessSlicedLayersJob(Job):
|
|||
|
||||
## Remove old layer data (if any)
|
||||
for node in DepthFirstIterator(self._scene.getRoot()):
|
||||
if type(node) is SceneNode and node.getMeshData():
|
||||
if node.callDecoration("getLayerData"):
|
||||
self._scene.getRoot().removeChild(node)
|
||||
Job.yieldThread()
|
||||
node.getParent().removeChild(node)
|
||||
break
|
||||
if self._abort_requested:
|
||||
if self._progress:
|
||||
self._progress.hide()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue