commit 0f5885ea280d8eca5f2533aaaa0d2712da246c1e
parent 107dd4cd10c3fad107bb4363f8184d049aae59dd
Author: vaplv <vaplv@free.fr>
Date: Sat, 22 Apr 2017 15:55:22 +0200
Fix a comment typo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/polygon.c b/src/polygon.c
@@ -253,8 +253,8 @@ polygon_vertex_add(struct polygon* poly, const float pos[3])
nodes = darray_vertex_node_data_get(&poly->pool);
- /* Skipe the vertex if it is roughly equal to the previous one */
- if(poly->nvertices && f3_eq_eps(nodes[poly->vertices].pos, pos, 1.e-6f))
+ /* Skip the vertex if it is roughly equal to the previous one */
+ if(poly->nvertices && f3_eq_eps(nodes[poly->nvertices-1].pos, pos, 1.e-6f))
goto exit;
if(poly->nvertices >= 2) {