From 915e5a0e691aced96b17d7eb2da98da3baafefbf Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Wed, 19 Oct 2022 15:04:03 +0800 Subject: [PATCH] FIX: model copy problem Change-Id: I1e32a5a89271a4bdc100599bb6a513e48c545313 (cherry picked from commit eb3755126a2df23045857e4081ba50a42ca5168c) --- src/slic3r/GUI/Selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp index fa13ca0aeb..6f404bfbc7 100644 --- a/src/slic3r/GUI/Selection.cpp +++ b/src/slic3r/GUI/Selection.cpp @@ -2707,7 +2707,7 @@ void Selection::paste_objects_from_clipboard() auto start_offset = in_current ? src_object->instances.front()->get_offset() : plate->get_build_volume().center(); auto point_offset = start_offset - start_point; auto empty_cell = wxGetApp().plater()->canvas3D()->get_nearest_empty_cell({start_point(0), start_point(1)}, {bbox.size()(0)+1, bbox.size()(1)+1}); - displacement = {empty_cell.x() + point_offset.x(), empty_cell.y() + point_offset.y(), start_point(2)}; + displacement = {empty_cell.x() + point_offset.x(), empty_cell.y() + point_offset.y(), start_offset(2)}; } for (ModelInstance* inst : dst_object->instances)