Fixed minor issue in 3D preview causing single-line toolpaths to miss the cap on one endpoint
This commit is contained in:
parent
7652abdf8d
commit
9ad5d9bb3d
@ -147,7 +147,9 @@ _3DScene::_extrusionentity_to_verts_do(const Lines &lines, const std::vector<dou
|
||||
// normal pointing to the left
|
||||
qverts->push_norm(xy_left_normal);
|
||||
qverts->push_vert(a2.x, a2.y, middle_z);
|
||||
} else if (i == lines.size()-1) {
|
||||
}
|
||||
// we don't use 'else' because both cases are true if we have only one line
|
||||
if (i == lines.size()-1) {
|
||||
// normal pointing downwards
|
||||
qverts->push_norm(0,0,-1);
|
||||
qverts->push_vert(b.x, b.y, bottom_z);
|
||||
|
Loading…
Reference in New Issue
Block a user