From f3d0e3c399be8831fde1711b25ba6624b8574535 Mon Sep 17 00:00:00 2001 From: PavelMikus Date: Tue, 21 Jun 2022 11:11:10 +0200 Subject: [PATCH] fix compile time warning (truncating double to float) --- src/libslic3r/GCode/SeamPlacer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/SeamPlacer.hpp b/src/libslic3r/GCode/SeamPlacer.hpp index 740fb33bc..cfad8c1ba 100644 --- a/src/libslic3r/GCode/SeamPlacer.hpp +++ b/src/libslic3r/GCode/SeamPlacer.hpp @@ -128,7 +128,7 @@ public: // arm length used during angles computation static constexpr float polygon_local_angles_arm_distance = 0.3f; - static constexpr float sharp_angle_snapping_threshold = 0.3 * PI; + static constexpr float sharp_angle_snapping_threshold = 0.3f * float(PI); // max tolerable distance from the previous layer is overhang_distance_tolerance_factor * flow_width static constexpr float overhang_distance_tolerance_factor = 0.5f;