fix: pass douglas_peucker tolerance in scaled units so the cancel-object outline is actually simplified (#15291)

Co-authored-by: bannykh <baza182@proton.me>
This commit is contained in:
pbannykh
2026-08-21 01:47:38 +05:00
committed by GitHub
parent aaa8e98bb0
commit aa233a82a5

View File

@@ -5827,7 +5827,7 @@ BoundingBoxf3 PrintInstance::get_bounding_box() const {
Polygon PrintInstance::get_convex_hull_2d() {
Polygon poly = print_object->model_object()->convex_hull_2d(model_instance->get_matrix());
poly.douglas_peucker(0.1);
poly.douglas_peucker(scale_(0.1));
return poly;
}