Skip to content

Commit

Permalink
Don't arrange in paste when no objects were present in the clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
casperlamboo committed Aug 8, 2023
1 parent c393d91 commit 3d82525
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cura/CuraActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def paste(self) -> None:

nodes = mesh_reader.stringToSceneNodes(scene_string)

if nodes.empty():
# Nothing to paste
return

# Find all fixed nodes, these are the nodes that should be avoided when arranging
fixed_nodes = []
root = application.getController().getScene().getRoot()
Expand Down

0 comments on commit 3d82525

Please sign in to comment.