mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Code cleanup
This commit is contained in:
parent
af19713a27
commit
3faaff85d5
14 changed files with 2 additions and 164 deletions
|
@ -102,7 +102,6 @@ bool PrintObject::reload_model_instances()
|
|||
copies.reserve(this->_model_object->instances.size());
|
||||
for (const ModelInstance *mi : this->_model_object->instances)
|
||||
{
|
||||
//################################################################################################################################
|
||||
#if ENABLE_MODELINSTANCE_3D_OFFSET
|
||||
if (mi->is_printable())
|
||||
{
|
||||
|
@ -110,12 +109,9 @@ bool PrintObject::reload_model_instances()
|
|||
copies.emplace_back(Point::new_scale(offset(0), offset(1)));
|
||||
}
|
||||
#else
|
||||
//################################################################################################################################
|
||||
if (mi->is_printable())
|
||||
copies.emplace_back(Point::new_scale(mi->offset(0), mi->offset(1)));
|
||||
//################################################################################################################################
|
||||
#endif // ENABLE_MODELINSTANCE_3D_OFFSET
|
||||
//################################################################################################################################
|
||||
}
|
||||
return this->set_copies(copies);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue