Fix T59490: wrong curve handle lines
authorJacques Lucke <mail@jlucke.com>
Mon, 17 Dec 2018 13:34:27 +0000 (14:34 +0100)
committerJacques Lucke <mail@jlucke.com>
Mon, 17 Dec 2018 13:34:32 +0000 (14:34 +0100)
source/blender/draw/intern/draw_cache_impl_curve.c

index f469ece6f183949ab1f927ee19f6fdb392767278..f8508a546616e984b67a062e65254fd5c8180506 100644 (file)
@@ -750,8 +750,8 @@ static void curve_create_edit_data_and_handles(
                                        GPU_indexbuf_add_point_vert(elbp_verts, vbo_len_used + 1);
                                }
                                if (elbp_lines) {
-                                       GPU_indexbuf_add_line_verts(elbp_lines, vbo_len_used + 0, vbo_len_used + 1);
-                                       GPU_indexbuf_add_line_verts(elbp_lines, vbo_len_used + 0, vbo_len_used + 2);
+                                       GPU_indexbuf_add_line_verts(elbp_lines, vbo_len_used + 1, vbo_len_used + 0);
+                                       GPU_indexbuf_add_line_verts(elbp_lines, vbo_len_used + 1, vbo_len_used + 2);
                                }
                                if (vbo_data) {
                                        char vflag[3] = {