You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix scaling issue in draw_line and similar methods
This commit is contained in:
@@ -621,8 +621,8 @@ struct CanvasItemPlotCurve {
|
||||
color2(p_color2) {}
|
||||
|
||||
void operator()(Vector2 pos0, Vector2 pos1, bool in_definition) {
|
||||
// FIXME: Using a line width greater than 1 breaks curve rendering
|
||||
ci.draw_line(pos0, pos1, in_definition ? color1 : color2, 1);
|
||||
// FIXME: Using a quad line breaks curve rendering.
|
||||
ci.draw_line(pos0, pos1, in_definition ? color1 : color2, -1);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user