Просмотр исходного кода

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

Fix duplicated file reloading
HellAholic 5 месяцев назад
Родитель
Сommit
6f6c000755
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      plugins/3MFReader/ThreeMFReader.py

+ 1 - 0
plugins/3MFReader/ThreeMFReader.py

@@ -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