Fix a typo in the line smoothing code. I don't think it causes any visual change.

This commit is contained in:
Alex Szpakowski
2019-06-28 12:40:41 -03:00
parent 3938da9cc6
commit 3c9662a9ce
+1 -1
View File
@@ -286,7 +286,7 @@ void Polyline::render_overdraw(const std::vector<Vector2> &normals, float pixel_
{ {
size_t k = vertex_count - i - 1; size_t k = vertex_count - i - 1;
overdraw[vertex_count + i] = vertices[k]; overdraw[vertex_count + i] = vertices[k];
overdraw[vertex_count + i+1] = vertices[k] + normals[k] * (pixel_size / normals[i].getLength()); overdraw[vertex_count + i+1] = vertices[k] + normals[k] * (pixel_size / normals[k].getLength());
} }
// if not looping, the outer overdraw vertices need to be displaced // if not looping, the outer overdraw vertices need to be displaced