Fix buffer overrun in paint_line_strokes_spacing

Error in 87cafe92ce
This commit is contained in:
Campbell Barton 2021-06-01 12:49:20 +10:00
parent e7b8a3cb0a
commit c145cb7998
Notes: blender-bot 2023-02-14 11:35:46 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

View File

@ -1191,7 +1191,7 @@ static void paint_line_strokes_spacing(bContext *C,
const bool use_scene_spacing = paint_stroke_use_scene_spacing(brush, mode);
float mouse[2], dmouse[2];
float mouse[3], dmouse[2];
float length;
float d_world_space_position[3] = {0.0f};
float world_space_position_old[3], world_space_position_new[3];