mirror of
https://git.freebsd.org/ports.git
synced 2025-06-17 18:50:33 -04:00
Reported by: Teodor Sigaev <teodorsigaev@gmail.com> Reviewed by: lwhsu (mentor) Sponsored by: Postgres Professional Differential Revision: https://reviews.freebsd.org/D44315
11 lines
704 B
C++
11 lines
704 B
C++
--- src/libslic3r/SupportSpotsGenerator.cpp.orig 2024-02-29 13:03:32 UTC
|
|
+++ src/libslic3r/SupportSpotsGenerator.cpp
|
|
@@ -1054,7 +1054,7 @@ SliceMappings update_active_object_parts(const Layer
|
|
}
|
|
}
|
|
const float bottom_z = layer->bottom_z();
|
|
- auto estimate_conn_strength = [bottom_z](const SliceConnection &conn) {
|
|
+ auto estimate_conn_strength = [bottom_z](const SliceConnection &conn) -> float {
|
|
if (conn.area < EPSILON) { // connection is empty, does not exists. Return max strength so that it is not picked as the
|
|
// weakest connection.
|
|
return INFINITY;
|