mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
ENH: add fill in bed arrangement
Also add an option to add_object_to_list to speedup. Change-Id: I9860a950fb98b144d831ded11d5911d3aba77ba5 (cherry picked from commit aa9dd9a02ef4ac4cd6987b02b0c9be6d9ce9097f)
This commit is contained in:
parent
a73ff69860
commit
f19c83ce38
7 changed files with 56 additions and 38 deletions
|
@ -3547,7 +3547,7 @@ void ObjectList::update_info_items(size_t obj_idx, wxDataViewItemArray* selectio
|
|||
|
||||
|
||||
|
||||
void ObjectList::add_object_to_list(size_t obj_idx, bool call_selection_changed, bool notify_partplate)
|
||||
void ObjectList::add_object_to_list(size_t obj_idx, bool call_selection_changed, bool notify_partplate, bool do_info_update)
|
||||
{
|
||||
auto model_object = (*m_objects)[obj_idx];
|
||||
//BBS start add obj_idx for debug
|
||||
|
@ -3564,6 +3564,9 @@ void ObjectList::add_object_to_list(size_t obj_idx, bool call_selection_changed,
|
|||
const auto item = m_objects_model->AddObject(model_object, warning_bitmap, model_object->is_cut());
|
||||
Expand(m_objects_model->GetParent(item));
|
||||
|
||||
if (!do_info_update)
|
||||
return;
|
||||
|
||||
update_info_items(obj_idx, nullptr, call_selection_changed);
|
||||
|
||||
add_volumes_to_object_in_list(obj_idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue