Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-30 20:33:15 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-08-30 20:34:11 +0300
commitd8bc28ca20c75cfced1d6c64857b1c2ff0282cc6 (patch)
tree7f322eec20bc2126f6f09348a80a65cde5dd88da
parentc65febf39614f9afe8da8b30675841369b4038be (diff)
Fix possible crash with new sculpting cursor, due to stack overflow
-rw-r--r--source/blender/editors/sculpt_paint/paint_cursor.c2
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);