mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
(cherry picked from commit 1ea33f0919)
This commit is contained in:
@@ -2149,8 +2149,8 @@ void ObjectList::load_generic_subobject(const std::string& type_name, const Mode
|
|||||||
// First (any) GLVolume of the selected instance. They all share the same instance matrix.
|
// First (any) GLVolume of the selected instance. They all share the same instance matrix.
|
||||||
const GLVolume* v = selection.get_first_volume();
|
const GLVolume* v = selection.get_first_volume();
|
||||||
// Transform the new modifier to be aligned with the print bed.
|
// Transform the new modifier to be aligned with the print bed.
|
||||||
const BoundingBoxf3 mesh_bb = new_volume->mesh().bounding_box();
|
new_volume->set_transformation(v->get_instance_transformation().get_matrix_no_offset().inverse());
|
||||||
new_volume->set_transformation(Geometry::Transformation::volume_to_bed_transformation(v->get_instance_transformation(), mesh_bb));
|
const BoundingBoxf3 mesh_bb = new_volume->mesh().bounding_box();
|
||||||
// Set the modifier position.
|
// Set the modifier position.
|
||||||
auto offset = (type_name == "Slab") ?
|
auto offset = (type_name == "Slab") ?
|
||||||
// Slab: Lift to print bed
|
// Slab: Lift to print bed
|
||||||
|
|||||||
Reference in New Issue
Block a user