mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
1st installment of 3d offset for ModelInstance
This commit is contained in:
parent
bef19fe6da
commit
af19713a27
16 changed files with 400 additions and 7 deletions
|
@ -102,8 +102,20 @@ 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())
|
||||
{
|
||||
const Vec3d& offset = mi->get_offset();
|
||||
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