Added mirror factors to .3mf import and enabled import factors
This commit is contained in:
parent
84de664fb5
commit
2a2d1d85f8
3 changed files with 23 additions and 5 deletions
src/libslic3r
|
@ -711,9 +711,13 @@ void ModelObject::center_around_origin()
|
|||
|
||||
if (!this->instances.empty()) {
|
||||
for (ModelInstance *i : this->instances) {
|
||||
#if ENABLE_MIRROR
|
||||
i->set_offset(i->get_offset() - shift);
|
||||
#else
|
||||
// apply rotation and scaling to vector as well before translating instance,
|
||||
// in order to leave final position unaltered
|
||||
i->set_offset(i->get_offset() + i->transform_vector(-shift, true));
|
||||
#endif // ENABLE_MIRROR
|
||||
}
|
||||
this->invalidate_bounding_box();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue