GPencil: Fix typo error
This commit is contained in:
parent
ae0b855a32
commit
b7f786c0b1
|
@ -148,19 +148,19 @@ bool BKE_gpencil_free_strokes(bGPDframe *gpf)
|
|||
}
|
||||
|
||||
/* Free strokes and colors belonging to a gp-frame */
|
||||
bool BKE_gpencil_free_frame_runtime_data(bGPDframe *gpu_eval)
|
||||
bool BKE_gpencil_free_frame_runtime_data(bGPDframe *gpf_eval)
|
||||
{
|
||||
bGPDstroke *gps_next;
|
||||
if (!gpu_eval) {
|
||||
if (!gpf_eval) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* free strokes */
|
||||
for (bGPDstroke *gps = gpu_eval->strokes.first; gps; gps = gps_next) {
|
||||
for (bGPDstroke *gps = gpf_eval->strokes.first; gps; gps = gps_next) {
|
||||
gps_next = gps->next;
|
||||
BKE_gpencil_free_stroke(gps);
|
||||
}
|
||||
BLI_listbase_clear(&gpu_eval->strokes);
|
||||
BLI_listbase_clear(&gpf_eval->strokes);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue