Fix T92185: GPencil memory leak removing stroke from python
The API was not removing the weights, points and traingulation data. Only it was removing the stroke itself.
This commit is contained in:
parent
d3f0470289
commit
dff17b0893
Notes:
blender-bot
2023-02-14 06:00:51 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93 Referenced by issue #88449, Blender LTS: Maintenance Task 2.93 Referenced by issue #92185, GPencil: Memory leak removing stroke from python
|
@ -906,7 +906,8 @@ static void rna_GPencil_stroke_remove(ID *id,
|
|||
return;
|
||||
}
|
||||
|
||||
BLI_freelinkN(&frame->strokes, stroke);
|
||||
BLI_remlink(&frame->strokes, stroke);
|
||||
BKE_gpencil_free_stroke(stroke);
|
||||
RNA_POINTER_INVALIDATE(stroke_ptr);
|
||||
|
||||
DEG_id_tag_update(&gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_COPY_ON_WRITE);
|
||||
|
|
Loading…
Reference in New Issue