summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-16 12:48:22 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-16 12:48:22 +0100
commit673d9c58fde6bb732b9b4c14946cc2e468525bf1 (patch)
tree8b3c687dc0b336dbe1dcf732055b64b6ad963f0a /editor
parent51f0d723b458d71f4331bf9ac6a153d97c64713c (diff)
parenta8cbb6245b53955883d8cbeee43524f7bf9fa4af (diff)
downloadredot-engine-673d9c58fde6bb732b9b4c14946cc2e468525bf1.tar.gz
Merge pull request #69851 from dalexeev/fix-scaling-issue
Fix scaling issue in `draw_line` and similar methods
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/curve_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp
index b9205a9c6e..20710bac19 100644
--- a/editor/plugins/curve_editor_plugin.cpp
+++ b/editor/plugins/curve_editor_plugin.cpp
@@ -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);
}
};