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:
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.
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue