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 /scene/2d/skeleton_2d.cpp | |
parent | 4f60fd04809490ef46e43936bfe7f28a5e97830b (diff) | |
parent | 59e11934d893cbcde70c10f9f861c710b19f3dfa (diff) |
Merge pull request #64367 from Mickeon/rename-var-to-str
Rename `str2var` to `str_to_var` and similar
Diffstat (limited to 'scene/2d/skeleton_2d.cpp')
-rw-r--r-- | scene/2d/skeleton_2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/skeleton_2d.cpp b/scene/2d/skeleton_2d.cpp index cbacb7f579..13a32fbfd4 100644 --- a/scene/2d/skeleton_2d.cpp +++ b/scene/2d/skeleton_2d.cpp @@ -44,7 +44,7 @@ bool Bone2D::_set(const StringName &p_path, const Variant &p_value) { } else if (path.begins_with("length")) { set_length(p_value); } else if (path.begins_with("bone_angle")) { - set_bone_angle(Math::deg2rad(real_t(p_value))); + set_bone_angle(Math::deg_to_rad(real_t(p_value))); } else if (path.begins_with("default_length")) { set_length(p_value); } @@ -66,7 +66,7 @@ bool Bone2D::_get(const StringName &p_path, Variant &r_ret) const { } else if (path.begins_with("length")) { r_ret = get_length(); } else if (path.begins_with("bone_angle")) { - r_ret = Math::rad2deg(get_bone_angle()); + r_ret = Math::rad_to_deg(get_bone_angle()); } else if (path.begins_with("default_length")) { r_ret = get_length(); } |