Temporary commented copy/paste for Layers

This commit is contained in:
YuSanka 2019-07-31 09:46:45 +02:00
parent 7266259269
commit 7746825ab4

View file

@ -798,17 +798,19 @@ void ObjectList::show_context_menu()
void ObjectList::copy() void ObjectList::copy()
{ {
if (m_selection_mode & smLayer) // if (m_selection_mode & smLayer)
fill_layer_config_ranges_cache(); // fill_layer_config_ranges_cache();
else // else {
// m_layer_config_ranges_cache.clear();
wxPostEvent((wxEvtHandler*)wxGetApp().plater()->canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_COPY)); wxPostEvent((wxEvtHandler*)wxGetApp().plater()->canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_COPY));
// }
} }
void ObjectList::paste() void ObjectList::paste()
{ {
if (!m_layer_config_ranges_cache.empty()) // if (!m_layer_config_ranges_cache.empty())
paste_layers_into_list(); // paste_layers_into_list();
else // else
wxPostEvent((wxEvtHandler*)wxGetApp().plater()->canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_PASTE)); wxPostEvent((wxEvtHandler*)wxGetApp().plater()->canvas3D()->get_wxglcanvas(), SimpleEvent(EVT_GLTOOLBAR_PASTE));
} }
@ -2927,6 +2929,7 @@ void ObjectList::select_item_all_children()
// update selection mode for non-multiple selection // update selection mode for non-multiple selection
void ObjectList::update_selection_mode() void ObjectList::update_selection_mode()
{ {
m_selected_layers_range_idx=-1;
// All items are unselected // All items are unselected
if (!GetSelection()) if (!GetSelection())
{ {