diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-30 20:33:15 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-08-30 20:34:11 +0300 |
commit | d8bc28ca20c75cfced1d6c64857b1c2ff0282cc6 (patch) | |
tree | 7f322eec20bc2126f6f09348a80a65cde5dd88da /source/blender/editors/sculpt_paint/paint_cursor.c | |
parent | c65febf39614f9afe8da8b30675841369b4038be (diff) |
Fix possible crash with new sculpting cursor, due to stack overflow
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index f456adfdf19..4a552fb3744 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -1090,7 +1090,7 @@ static void cursor_draw_point_screen_space(const uint gpuattr, float true_location[3], float obmat[4][4]) { - float translation_vertex_cursor[2], location[3]; + float translation_vertex_cursor[3], location[3]; copy_v3_v3(location, true_location); mul_m4_v3(obmat, location); ED_view3d_project(ar, location, translation_vertex_cursor); |