From 5298e16e80e032a7ff0c6a661b826859e5aeccd0 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Sun, 6 Feb 2022 11:14:58 +0000 Subject: Float literals - fix main primitives to use .f Converts float literals from double format (e.g. 0.0) to float format (e.g. 0.0f) where appropriate for 32 bit calculations. --- core/math/geometry_2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/math/geometry_2d.cpp') diff --git a/core/math/geometry_2d.cpp b/core/math/geometry_2d.cpp index 9fa45a3363..b1af91c49c 100644 --- a/core/math/geometry_2d.cpp +++ b/core/math/geometry_2d.cpp @@ -290,7 +290,7 @@ Vector> Geometry2D::_polypath_offset(const Vector &p_poly et = etOpenRound; break; } - ClipperOffset co(2.0, 0.25 * SCALE_FACTOR); // Defaults from ClipperOffset. + ClipperOffset co(2.0, 0.25f * SCALE_FACTOR); // Defaults from ClipperOffset. Path path; // Need to scale points (Clipper's requirement for robust computation). -- cgit v1.2.3