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:
parent
85ed9eac6f
commit
59e11934d8
80 changed files with 396 additions and 368 deletions
|
|
@ -50,9 +50,9 @@ bool SkeletonModification3DCCDIK::_set(const StringName &p_path, const Variant &
|
|||
} else if (what == "enable_joint_constraint") {
|
||||
set_ccdik_joint_enable_constraint(which, p_value);
|
||||
} else if (what == "joint_constraint_angle_min") {
|
||||
set_ccdik_joint_constraint_angle_min(which, Math::deg2rad(real_t(p_value)));
|
||||
set_ccdik_joint_constraint_angle_min(which, Math::deg_to_rad(real_t(p_value)));
|
||||
} else if (what == "joint_constraint_angle_max") {
|
||||
set_ccdik_joint_constraint_angle_max(which, Math::deg2rad(real_t(p_value)));
|
||||
set_ccdik_joint_constraint_angle_max(which, Math::deg_to_rad(real_t(p_value)));
|
||||
} else if (what == "joint_constraint_angles_invert") {
|
||||
set_ccdik_joint_constraint_invert(which, p_value);
|
||||
}
|
||||
|
|
@ -79,9 +79,9 @@ bool SkeletonModification3DCCDIK::_get(const StringName &p_path, Variant &r_ret)
|
|||
} else if (what == "enable_joint_constraint") {
|
||||
r_ret = get_ccdik_joint_enable_constraint(which);
|
||||
} else if (what == "joint_constraint_angle_min") {
|
||||
r_ret = Math::rad2deg(get_ccdik_joint_constraint_angle_min(which));
|
||||
r_ret = Math::rad_to_deg(get_ccdik_joint_constraint_angle_min(which));
|
||||
} else if (what == "joint_constraint_angle_max") {
|
||||
r_ret = Math::rad2deg(get_ccdik_joint_constraint_angle_max(which));
|
||||
r_ret = Math::rad_to_deg(get_ccdik_joint_constraint_angle_max(which));
|
||||
} else if (what == "joint_constraint_angles_invert") {
|
||||
r_ret = get_ccdik_joint_constraint_invert(which);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue