SPE-1655 - Fixed adding an instance to a mirrored object
This commit is contained in:
parent
a092fdc1ed
commit
5bb7428aa4
3 changed files with 7 additions and 8 deletions
|
@ -6070,7 +6070,9 @@ void Plater::increase_instances(size_t num, int obj_idx/* = -1*/)
|
|||
double offset = offset_base;
|
||||
for (size_t i = 0; i < num; i++, offset += offset_base) {
|
||||
Vec3d offset_vec = model_instance->get_offset() + Vec3d(offset, offset, 0.0);
|
||||
model_object->add_instance(offset_vec, model_instance->get_scaling_factor(), model_instance->get_rotation(), model_instance->get_mirror());
|
||||
Geometry::Transformation trafo = model_instance->get_transformation();
|
||||
trafo.set_offset(offset_vec);
|
||||
model_object->add_instance(trafo);
|
||||
// p->print.get_object(obj_idx)->add_copy(Slic3r::to_2d(offset_vec));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue