Explorar el Código

Merge pull request #96559 from Calinou/editor-animation-bezier-antialias-lines

Use antialiased line drawing in animation Bezier editor
Rémi Verschelde hace 1 año
padre
commit
c12d86a350
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      editor/animation_bezier_editor.cpp

+ 2 - 2
editor/animation_bezier_editor.cpp

@@ -174,7 +174,7 @@ void AnimationBezierTrackEdit::_draw_track(int p_track, const Color &p_color) {
 		}
 		}
 
 
 		if (lines.size() >= 2) {
 		if (lines.size() >= 2) {
-			draw_multiline(lines, p_color, Math::round(EDSCALE));
+			draw_multiline(lines, p_color, Math::round(EDSCALE), true);
 		}
 		}
 	}
 	}
 }
 }
@@ -208,7 +208,7 @@ void AnimationBezierTrackEdit::_draw_line_clipped(const Vector2 &p_from, const V
 		from = from.lerp(to, c);
 		from = from.lerp(to, c);
 	}
 	}
 
 
-	draw_line(from, to, p_color, Math::round(EDSCALE));
+	draw_line(from, to, p_color, Math::round(EDSCALE), true);
 }
 }
 
 
 void AnimationBezierTrackEdit::_notification(int p_what) {
 void AnimationBezierTrackEdit::_notification(int p_what) {