fix compile time warning (truncating double to float)

This commit is contained in:
PavelMikus 2022-06-21 11:11:10 +02:00
parent 732586de7c
commit f3d0e3c399

View File

@ -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;