[Bf-blender-cvs] [a3ce05d00e3] master: GPencil: Fix callback parameter list error

Antonio Vazquez noreply at git.blender.org
Sat Nov 14 09:45:46 CET 2020


Commit: a3ce05d00e3762769fa53cb8955ed2d3a66e1382
Author: Antonio Vazquez
Date:   Sat Nov 14 09:44:55 2020 +0100
Branches: master
https://developer.blender.org/rBa3ce05d00e3762769fa53cb8955ed2d3a66e1382

GPencil: Fix callback parameter list error

In the previous commit the bGPDframe parameter was removed, but this parameter is required to keep the same function signature.

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

M	source/blender/draw/intern/draw_cache_impl_gpencil.c

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

diff --git a/source/blender/draw/intern/draw_cache_impl_gpencil.c b/source/blender/draw/intern/draw_cache_impl_gpencil.c
index 81208b2f3bf..4e809ad45fe 100644
--- a/source/blender/draw/intern/draw_cache_impl_gpencil.c
+++ b/source/blender/draw/intern/draw_cache_impl_gpencil.c
@@ -771,7 +771,10 @@ static char gpencil_beztriple_vflag_get(char flag,
   return vflag;
 }
 
-static void gpencil_edit_curve_stroke_iter_cb(bGPDlayer *gpl, bGPDstroke *gps, void *thunk)
+static void gpencil_edit_curve_stroke_iter_cb(bGPDlayer *gpl,
+                                              bGPDframe *UNUSED(gpf),
+                                              bGPDstroke *gps,
+                                              void *thunk)
 {
   if (gpl->flag & GP_LAYER_LOCKED) {
     return;



More information about the Bf-blender-cvs mailing list