ObjectList::paste_objects_into_list() refactored to call front end / back end synchronization and scene refresh only once
This commit is contained in:
parent
d8f28bc31a
commit
8235ad2b02
3 changed files with 35 additions and 3 deletions
src/slic3r/GUI
|
@ -487,12 +487,13 @@ void ObjectList::paste_objects_into_list(const std::vector<size_t>& object_idxs)
|
|||
for (const size_t object : object_idxs)
|
||||
{
|
||||
add_object_to_list(object);
|
||||
m_parts_changed = true;
|
||||
parts_changed(object);
|
||||
|
||||
items.Add(m_objects_model->GetItemById(object));
|
||||
}
|
||||
|
||||
m_parts_changed = true;
|
||||
wxGetApp().plater()->changed_objects(object_idxs);
|
||||
m_parts_changed = false;
|
||||
|
||||
select_items(items);
|
||||
#ifndef __WXOSX__ //#ifdef __WXMSW__ // #ys_FIXME
|
||||
selection_changed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue