Don't arrange in paste when no objects were present in the clipboard

CURA-7913
This commit is contained in:
c.lamboo 2023-08-08 12:26:44 +02:00
parent c393d915d7
commit 511f05c392

View File

@ -217,6 +217,10 @@ class CuraActions(QObject):
nodes = mesh_reader.stringToSceneNodes(scene_string) nodes = mesh_reader.stringToSceneNodes(scene_string)
if not nodes:
# Nothing to paste
return
# Find all fixed nodes, these are the nodes that should be avoided when arranging # Find all fixed nodes, these are the nodes that should be avoided when arranging
fixed_nodes = [] fixed_nodes = []
root = application.getController().getScene().getRoot() root = application.getController().getScene().getRoot()