From 042e0f701913e379957d24cb31676efd0d1627e0 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Tue, 12 Sep 2023 14:43:23 +0800 Subject: [PATCH] Ignore method track when drawing line between keys --- editor/animation_track_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 77ab709679d..e22f3708e09 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -2177,7 +2177,7 @@ void AnimationTrackEdit::draw_key_link(int p_index, float p_pixels_sec, int p_x, Variant current = animation->track_get_key_value(get_track(), p_index); Variant next = animation->track_get_key_value(get_track(), p_index + 1); - if (current != next) { + if (current != next || animation->track_get_type(get_track()) == Animation::TrackType::TYPE_METHOD) { return; }