summaryrefslogtreecommitdiff
path: root/cad/PrusaSlicer/files/patch-src_libslic3r_SupportSpotsGenerator.cpp
blob: 0351d3774d08a0c7a627e699b60ed89ad347ed56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/libslic3r/SupportSpotsGenerator.cpp.orig	2025-04-10 11:26:51 UTC
+++ src/libslic3r/SupportSpotsGenerator.cpp
@@ -1063,7 +1063,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;