Fix T104039: GPencil Fill crash in multiframe

The problem was that the stroke array was not reset for 
each iteration of the loop, so the second time around, 
the array was not initialized correctly and 
was left with a NaN value.
This commit is contained in:
Antonio Vazquez 2023-01-23 18:42:56 +01:00
parent e49e5f6f08
commit fe8bf5e0c7
Notes: blender-bot 2023-02-13 13:32:30 +01:00
Referenced by issue #104039, Grease Pencil: Multiframe Fill exits the program.
1 changed files with 1 additions and 0 deletions

View File

@ -2919,6 +2919,7 @@ static int gpencil_fill_modal(bContext *C, wmOperator *op, const wmEvent *event)
}
if (extend_lines) {
stroke_array_free(tgpf);
gpencil_delete_temp_stroke_extension(tgpf, true);
}