Merge pull request #19721 from Ultimaker/CURA-11905_fix-multi-model-reload

Fix duplicated file reloading
This commit is contained in:
HellAholic 2024-10-10 10:57:27 +02:00 committed by GitHub
commit 6f6c000755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,6 +132,7 @@ class ThreeMFReader(MeshReader):
vertices = numpy.resize(data, (int(data.size / 3), 3))
mesh_builder.setVertices(vertices)
mesh_builder.calculateNormals(fast=True)
mesh_builder.setMeshId(node_id)
if file_name:
# The filename is used to give the user the option to reload the file if it is changed on disk
# It is only set for the root node of the 3mf file