Rename str2var to str_to_var and similar
Affects the Math class, a good chunk of the audio code, and a lot of other miscellaneous classes, too. - `var2str` -> `var_to_str` - `str2var` -> `str_to_var` - `bytes2var` -> `bytes_to_var` - `bytes2var_with_objects` -> `bytes_to_var_with_objects` - `var2bytes` -> `var_to_bytes` - `var2bytes_with_objects` -> `var_to_bytes_with_objects` - `linear2db` -> `linear_to_db` - `db2linear` -> `db_to_linear` - `deg2rad` -> `deg_to_rad` - `rad2deg` -> `rad_to_deg` - `dict2inst` -> `dict_to_inst` - `inst2dict` -> `inst_to_dict`
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user