mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 13:19:00 +08:00
Fix GCodeReader-feature related _readMeshfinished to match changes upstream.
The job.getResult() now returns a list of nodes now, so we need to loop over those nodes instead of taking it as a single node value.
This commit is contained in:
parent
cb428c70de
commit
9e85d6c894
@ -1056,11 +1056,11 @@ class CuraApplication(QtApplication):
|
||||
job.start()
|
||||
|
||||
def _readMeshFinished(self, job):
|
||||
node = job.getResult()
|
||||
nodes = job.getResult()
|
||||
filename = job.getFileName()
|
||||
self._currently_loading_files.remove(filename)
|
||||
|
||||
if node != None:
|
||||
for node in nodes:
|
||||
node.setSelectable(True)
|
||||
node.setName(os.path.basename(filename))
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
# Copyright (c) 2015 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
import math
|
||||
import os.path
|
||||
import zipfile
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user