ENH: disable arranging selected items

0. disable arranging selected
1. fix bug where brim is not correct.
2. fix bug where big circle objects are not arranged properly
3. disable default enable_rotation

Change-Id: Ifc69f35d900ff63ec1e9ec8bf8638afc6ea7d54b
(cherry picked from commit 2ed1b0dd8573a1e10aaf77f0d9f8896cef304427)
This commit is contained in:
Arthur authored and Lane.Wei committed 2022-08-05 16:11:42 +08:00
1 parent 74e92ac51d
commit 07ae246e5f
9 files changed
+77 -31

No files matched your search

+16 -2
View File
@@ -144,8 +144,22 @@ ArrangePolygon get_instance_arrange_poly(ModelInstance* instance, const Slic3r::
for (int i = 0; i < BedType::btCount; i++)
ap.vitrify_temp += tmp * pow(100, BedType::btCount - i - 1);
}
ap.height = instance->get_object()->bounding_box().size().z();
ap.name = instance->get_object()->name;
// get brim width
auto obj = instance->get_object();
ap.brim_width = instance->get_auto_brim_width();
auto brim_type_ptr = obj->get_config_value<ConfigOptionEnum<BrimType>>(config, "brim_type");
if (brim_type_ptr) {
auto brim_type = brim_type_ptr->getInt();
if (brim_type == btOuterOnly)
ap.brim_width = obj->get_config_value<ConfigOptionFloat>(config, "brim_width")->getFloat();
else if (brim_type == btNoBrim)
ap.brim_width = 0;
}
ap.height = obj->bounding_box().size().z();
ap.name = obj->name;
return ap;
}