mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-27 00:24:00 -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
|
@ -1961,7 +1961,9 @@ void Selection::update_type()
|
|||
unsigned int sels_cntr = 0;
|
||||
for (ObjectIdxsToInstanceIdxsMap::iterator it = m_cache.content.begin(); it != m_cache.content.end(); ++it)
|
||||
{
|
||||
const ModelObject* model_object = m_model->objects[it->first];
|
||||
bool is_wipe_tower = it->first >= 1000;
|
||||
int actual_obj_id = is_wipe_tower ? it->first - 1000 : it->first;
|
||||
const ModelObject *model_object = m_model->objects[actual_obj_id];
|
||||
unsigned int volumes_count = (unsigned int)model_object->volumes.size();
|
||||
unsigned int instances_count = (unsigned int)model_object->instances.size();
|
||||
sels_cntr += volumes_count * instances_count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue