mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Follow-up of ef8ddacdfc
-> Fixed rendering of modifiers after cleaning current selection
This commit is contained in:
parent
afa4776ead
commit
beb60b5138
2 changed files with 16 additions and 12 deletions
|
@ -415,7 +415,7 @@ void Selection::remove_all()
|
|||
// Not taking the snapshot with non-empty Redo stack will likely be more confusing than losing the Redo stack.
|
||||
// Let's wait for user feedback.
|
||||
// if (!wxGetApp().plater()->can_redo())
|
||||
wxGetApp().plater()->take_snapshot(_(L("Selection-Remove All")));
|
||||
wxGetApp().plater()->take_snapshot(_L("Selection-Remove All"));
|
||||
|
||||
m_mode = Instance;
|
||||
clear();
|
||||
|
@ -432,9 +432,9 @@ void Selection::set_deserialized(EMode mode, const std::vector<std::pair<size_t,
|
|||
m_list.clear();
|
||||
for (unsigned int i = 0; i < (unsigned int)m_volumes->size(); ++ i)
|
||||
if (std::binary_search(volumes_and_instances.begin(), volumes_and_instances.end(), (*m_volumes)[i]->geometry_id))
|
||||
this->do_add_volume(i);
|
||||
do_add_volume(i);
|
||||
update_type();
|
||||
this->set_bounding_boxes_dirty();
|
||||
set_bounding_boxes_dirty();
|
||||
}
|
||||
|
||||
void Selection::clear()
|
||||
|
@ -447,12 +447,14 @@ void Selection::clear()
|
|||
|
||||
for (unsigned int i : m_list) {
|
||||
(*m_volumes)[i]->selected = false;
|
||||
// ensure the volume gets the proper color before next call to render (expecially needed for transparent volumes)
|
||||
(*m_volumes)[i]->set_render_color();
|
||||
}
|
||||
|
||||
m_list.clear();
|
||||
|
||||
update_type();
|
||||
this->set_bounding_boxes_dirty();
|
||||
set_bounding_boxes_dirty();
|
||||
|
||||
// this happens while the application is closing
|
||||
if (wxGetApp().obj_manipul() == nullptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue