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 committed by Jeroen Bakker
parent 6dde03eb4a
commit 58e3d82108
Notes: blender-bot 2023-02-14 09:34:18 +01:00
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 1 additions and 1 deletions

View File

@ -1164,7 +1164,7 @@ static void paint_line_strokes_spacing(bContext *C,
{
UnifiedPaintSettings *ups = stroke->ups;
float mouse[2], dmouse[2];
float mouse[3], dmouse[2];
float length;
sub_v2_v2v2(dmouse, new_pos, old_pos);