Adding printOrder to pasted elements

CURA-11617

CURA-11624
This commit is contained in:
Saumya Jain 2024-02-21 18:20:19 +01:00
parent 285a36a38a
commit 53b3eadb3c

View File

@ -273,7 +273,11 @@ class CuraActions(QObject):
# deselect currently selected nodes, and select the new nodes
for node in Selection.getAllSelectedObjects():
Selection.remove(node)
numberOfFixedNodes = len(fixed_nodes)
for node in nodes:
numberOfFixedNodes += 1
node.printOrder = numberOfFixedNodes
Selection.add(node)
def _openUrl(self, url: QUrl) -> None: