Skip to content

Commit 5a9518f

Browse files
authored
Preserve layer stacking order on copy and paste (#668)
Fix Issue#610 Fix Issue#610 by reversing the direction of the copy buffer entry vector. This will preserve the layer ordering and match the behaviour of PasteIntoFolder.
1 parent 59578c8 commit 5a9518f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/src/document/portfolio_message_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ impl MessageHandler<PortfolioMessage, &InputPreprocessorMessageHandler> for Port
414414
responses.push_back(DeselectAllLayers.into());
415415
responses.push_back(StartTransaction.into());
416416

417-
for entry in data {
417+
for entry in data.iter().rev() {
418418
let destination_path = [shallowest_common_folder.to_vec(), vec![generate_uuid()]].concat();
419419

420420
responses.push_front(

0 commit comments

Comments
 (0)