[Bf-blender-cvs] [d8bc28ca20c] master: Fix possible crash with new sculpting cursor, due to stack overflow

Brecht Van Lommel noreply at git.blender.org
Fri Aug 30 19:36:17 CEST 2019


Commit: d8bc28ca20c75cfced1d6c64857b1c2ff0282cc6
Author: Brecht Van Lommel
Date:   Fri Aug 30 19:33:15 2019 +0200
Branches: master
https://developer.blender.org/rBd8bc28ca20c75cfced1d6c64857b1c2ff0282cc6

Fix possible crash with new sculpting cursor, due to stack overflow

===================================================================

M	source/blender/editors/sculpt_paint/paint_cursor.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list