Skip to content

Commit

Permalink
Merge pull request #93696 from TokageItLab/default-angle-linear
Browse files Browse the repository at this point in the history
Revert the default InterpolationType with angle property to Linear
  • Loading branch information
akien-mga committed Jun 28, 2024
2 parents e052a53 + dde616f commit 52d7ff8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions editor/animation_track_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5084,17 +5084,7 @@ void AnimationTrackEditor::_fetch_value_track_options(const NodePath &p_path, An
PropertyInfo h = _find_hint_for_track(animation->get_track_count() - 1, np);
animation->remove_track(animation->get_track_count() - 1); // Hack.
switch (h.type) {
case Variant::FLOAT: {
#ifdef DISABLE_DEPRECATED
bool is_angle = h.type == Variant::FLOAT && h.hint_string.contains("radians_as_degrees");
#else
bool is_angle = h.type == Variant::FLOAT && h.hint_string.contains("radians");
#endif // DISABLE_DEPRECATED
if (is_angle) {
*r_interpolation_type = Animation::INTERPOLATION_LINEAR_ANGLE;
}
[[fallthrough]];
}
case Variant::FLOAT:
case Variant::VECTOR2:
case Variant::RECT2:
case Variant::VECTOR3:
Expand Down

0 comments on commit 52d7ff8

Please sign in to comment.