diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-25 17:18:38 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-25 17:18:38 +0200 |
commit | e4cfd4e26a7bb497a5fafcf804bae91ead3ac1c2 (patch) | |
tree | 8635d80459d04f392974a0b8fc2967c91450a0e8 /editor/animation_track_editor.cpp | |
parent | f0a980840f77d464bc14c1d1966865413853d703 (diff) | |
parent | e45927b2f283570c19d207f39ea84fae840b74fe (diff) | |
download | redot-engine-e4cfd4e26a7bb497a5fafcf804bae91ead3ac1c2.tar.gz |
Merge pull request #82195 from AThousandShips/radian_fix
Replace `radians` range hint with `radians_as_degrees`
Diffstat (limited to 'editor/animation_track_editor.cpp')
-rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 5b87dc4f46..4f6e7c4b91 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -2699,7 +2699,11 @@ void AnimationTrackEdit::gui_input(const Ref<InputEvent> &p_event) { StringName prop = npath.get_concatenated_subnames(); PropertyInfo prop_info; ClassDB::get_property_info(nd->get_class(), prop, &prop_info); +#ifdef DISABLE_DEPRECATED + bool is_angle = prop_info.type == Variant::FLOAT && prop_info.hint_string.find("radians_as_degrees") != -1; +#else bool is_angle = prop_info.type == Variant::FLOAT && prop_info.hint_string.find("radians") != -1; +#endif // DISABLE_DEPRECATED if (is_angle) { menu->add_icon_item(get_editor_theme_icon(SNAME("InterpLinearAngle")), TTR("Linear Angle"), MENU_INTERPOLATION_LINEAR_ANGLE); menu->add_icon_item(get_editor_theme_icon(SNAME("InterpCubicAngle")), TTR("Cubic Angle"), MENU_INTERPOLATION_CUBIC_ANGLE); |