Skip to content

Commit

Permalink
Preserve layer stacking order on copy and paste (#668)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nupsi authored Jun 8, 2022
1 parent 59578c8 commit 5a9518f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/src/document/portfolio_message_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl MessageHandler<PortfolioMessage, &InputPreprocessorMessageHandler> for Port
responses.push_back(DeselectAllLayers.into());
responses.push_back(StartTransaction.into());

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

responses.push_front(
Expand Down

0 comments on commit 5a9518f

Please sign in to comment.