Pārlūkot izejas kodu

Change color of AnimationPlayer curve to "highlight"

This is to be consistent with Curve editor and to be less confusing
related to tangent lines color.
Mateus Felipe C. C. Pinto 6 gadi atpakaļ
vecāks
revīzija
e7968954e8
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      editor/animation_bezier_editor.cpp

+ 2 - 1
editor/animation_bezier_editor.cpp

@@ -408,7 +408,8 @@ void AnimationBezierTrackEdit::_notification(int p_what) {
 			}
 
 			//draw edited curve
-			_draw_track(track, accent);
+			const Color highlight = get_color("highlight_color", "Editor");
+			_draw_track(track, highlight);
 		}
 
 		//draw editor handles