1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-15 08:44:26 +00:00

Copy and paste -> Fixed paste for multivolumes copies

This commit is contained in:
Enrico Turri
2019-04-12 11:28:24 +02:00
parent 5875582edb
commit defcd26b4a
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -463,6 +463,12 @@ void ObjectList::paste_volumes_into_list(int obj_idx, const ModelVolumePtrs& vol
m_parts_changed = true;
parts_changed(obj_idx);
if (items.size() > 1)
{
m_selection_mode = smVolume;
m_last_selected_item = wxDataViewItem(0);
}
select_items(items);
#ifndef __WXOSX__ //#ifdef __WXMSW__ // #ys_FIXME
selection_changed();
+1
View File
@@ -1795,6 +1795,7 @@ void Selection::paste_objects_from_clipboard()
dst_object->translate(10.0, 10.0, 0.0);
object_idxs.push_back(m_model->objects.size() - 1);
}
wxGetApp().obj_list()->paste_objects_into_list(object_idxs);
}