Copy and paste -> Fixed paste for multivolumes copies
This commit is contained in:
parent
5875582edb
commit
defcd26b4a
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue