GPencil: Fix typo error

This commit is contained in:
Antonio Vazquez 2019-08-24 09:02:42 +02:00
parent ae0b855a32
commit b7f786c0b1
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}