Explorar o código

Ignore method track when drawing line between keys

jsjtxietian %!s(int64=2) %!d(string=hai) anos
pai
achega
042e0f7019
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/animation_track_editor.cpp

+ 1 - 1
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;
 	}