saumya.jain 1 год назад
Родитель
Сommit
1591a2a0c3
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      cura/Arranging/GridArrange.py
  2. 1 1
      cura/CuraActions.py

+ 2 - 1
cura/Arranging/GridArrange.py

@@ -67,7 +67,8 @@ class GridArrange(Arranger):
         grouped_operation = GroupedOperation()
 
         for grid_id, node in zip(sequence, self._nodes_to_arrange):
-            grouped_operation.addOperation(AddSceneNodeOperation(node, scene_root))
+            if add_new_nodes_in_scene:
+                grouped_operation.addOperation(AddSceneNodeOperation(node, scene_root))
             grid_x, grid_y = grid_id
             operation = self.moveNodeOnGrid(node, grid_x, grid_y)
             grouped_operation.addOperation(operation)

+ 1 - 1
cura/CuraActions.py

@@ -243,7 +243,7 @@ class CuraActions(QObject):
         # Add the new nodes to the scene, and arrange them
 
         arranger = GridArrange(nodes, application.getBuildVolume(), fixed_nodes)
-        group_operation, not_fit_count = arranger.createGroupOperationForArrange()
+        group_operation, not_fit_count = arranger.createGroupOperationForArrange(add_new_nodes_in_scene = True)
         group_operation.push()
 
         # deselect currently selected nodes, and select the new nodes