diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-26 23:04:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 23:04:06 +0200 |
commit | f9f24469720a9422a1b08e387c81378d734ace82 (patch) | |
tree | e92f458834fa3935e208ae35d5da8af7d56c0b23 /modules/csg/csg_shape.cpp | |
parent | 4f60fd04809490ef46e43936bfe7f28a5e97830b (diff) | |
parent | 59e11934d893cbcde70c10f9f861c710b19f3dfa (diff) | |
download | redot-engine-f9f24469720a9422a1b08e387c81378d734ace82.tar.gz |
Merge pull request #64367 from Mickeon/rename-var-to-str
Rename `str2var` to `str_to_var` and similar
Diffstat (limited to 'modules/csg/csg_shape.cpp')
-rw-r--r-- | modules/csg/csg_shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/csg/csg_shape.cpp b/modules/csg/csg_shape.cpp index 243c23342e..6294790132 100644 --- a/modules/csg/csg_shape.cpp +++ b/modules/csg/csg_shape.cpp @@ -1838,7 +1838,7 @@ CSGBrush *CSGPolygon3D::_build_brush() { u_step *= curve_length / path_u_distance; } double v_step = 1.0 / shape_sides; - double spin_step = Math::deg2rad(spin_degrees / spin_sides); + double spin_step = Math::deg_to_rad(spin_degrees / spin_sides); double extrusion_step = 1.0 / extrusions; if (mode == MODE_PATH) { if (path_joined) { @@ -1902,7 +1902,7 @@ CSGBrush *CSGPolygon3D::_build_brush() { } } - real_t angle_simplify_dot = Math::cos(Math::deg2rad(path_simplify_angle)); + real_t angle_simplify_dot = Math::cos(Math::deg_to_rad(path_simplify_angle)); Vector3 previous_simplify_dir = Vector3(0, 0, 0); int faces_combined = 0; |