mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:09:04 +08:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
aaa63b5379
@ -851,7 +851,11 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
def _reloadMeshFinished(self, job):
|
def _reloadMeshFinished(self, job):
|
||||||
# TODO; This needs to be fixed properly. We now make the assumption that we only load a single mesh!
|
# TODO; This needs to be fixed properly. We now make the assumption that we only load a single mesh!
|
||||||
job._node.setMeshData(job.getResult().getMeshData())
|
mesh_data = job.getResult().getMeshData()
|
||||||
|
if mesh_data:
|
||||||
|
job._node.setMeshData(job.getResult().getMeshData())
|
||||||
|
else:
|
||||||
|
Logger.log("w", "Could not find a mesh in reloaded node.")
|
||||||
|
|
||||||
def _openFile(self, file):
|
def _openFile(self, file):
|
||||||
job = ReadMeshJob(os.path.abspath(file))
|
job = ReadMeshJob(os.path.abspath(file))
|
||||||
|
@ -111,6 +111,8 @@ class ThreeMFReader(MeshReader):
|
|||||||
if len(objects) > 1:
|
if len(objects) > 1:
|
||||||
group_decorator = GroupDecorator()
|
group_decorator = GroupDecorator()
|
||||||
result.addDecorator(group_decorator)
|
result.addDecorator(group_decorator)
|
||||||
|
elif len(objects) == 1:
|
||||||
|
result = result.getChildren()[0] # Only one object found, return that.
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.log("e", "exception occured in 3mf reader: %s", e)
|
Logger.log("e", "exception occured in 3mf reader: %s", e)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user