[Bf-blender-cvs] [b7f786c0b15] master: GPencil: Fix typo error

Antonio Vazquez noreply at git.blender.org
Sat Aug 24 09:02:49 CEST 2019


Commit: b7f786c0b150378a84a0377e79e9cf14023055d5
Author: Antonio Vazquez
Date:   Sat Aug 24 09:02:42 2019 +0200
Branches: master
https://developer.blender.org/rBb7f786c0b150378a84a0377e79e9cf14023055d5

GPencil: Fix typo error

===================================================================

M	source/blender/blenkernel/intern/gpencil.c

===================================================================

diff --git a/source/blender/blenkernel/intern/gpencil.c b/source/blender/blenkernel/intern/gpencil.c
index 31c05497b8d..d4bf76ea44a 100644
--- a/source/blender/blenkernel/intern/gpencil.c
+++ b/source/blender/blenkernel/intern/gpencil.c
@@ -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;
 }



More information about the Bf-blender-cvs mailing list