mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
In geometry41core, take the line width/depth from the second vertex rather than the first.
This change fixes a problem where a sequence of lines that have different widths are displayed with the widths shifted by 1, i.e. line 1 had the width of line 2 and so on.
This commit is contained in:
parent
49e53c2cda
commit
6d6fec46b2
1 changed files with 2 additions and 2 deletions
|
@ -130,9 +130,9 @@ geometry41core =
|
||||||
// fixed size for movements
|
// fixed size for movements
|
||||||
size_x = 0.05;
|
size_x = 0.05;
|
||||||
} else {
|
} else {
|
||||||
size_x = v_line_dim[0].x / 2 + 0.01; // radius, and make it nicely overlapping
|
size_x = v_line_dim[1].x / 2 + 0.01; // radius, and make it nicely overlapping
|
||||||
}
|
}
|
||||||
size_y = v_line_dim[0].y / 2 + 0.01;
|
size_y = v_line_dim[1].y / 2 + 0.01;
|
||||||
|
|
||||||
g_vertex_delta = gl_in[1].gl_Position - gl_in[0].gl_Position;
|
g_vertex_delta = gl_in[1].gl_Position - gl_in[0].gl_Position;
|
||||||
g_vertex_normal_horz_head = normalize(vec3(-g_vertex_delta.x, -g_vertex_delta.y, -g_vertex_delta.z));
|
g_vertex_normal_horz_head = normalize(vec3(-g_vertex_delta.x, -g_vertex_delta.y, -g_vertex_delta.z));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue