mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 21:58:59 +08:00
Adding printOrder to pasted elements
CURA-11617 CURA-11624
This commit is contained in:
parent
285a36a38a
commit
53b3eadb3c
@ -273,7 +273,11 @@ class CuraActions(QObject):
|
|||||||
# deselect currently selected nodes, and select the new nodes
|
# deselect currently selected nodes, and select the new nodes
|
||||||
for node in Selection.getAllSelectedObjects():
|
for node in Selection.getAllSelectedObjects():
|
||||||
Selection.remove(node)
|
Selection.remove(node)
|
||||||
|
|
||||||
|
numberOfFixedNodes = len(fixed_nodes)
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
|
numberOfFixedNodes += 1
|
||||||
|
node.printOrder = numberOfFixedNodes
|
||||||
Selection.add(node)
|
Selection.add(node)
|
||||||
|
|
||||||
def _openUrl(self, url: QUrl) -> None:
|
def _openUrl(self, url: QUrl) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user