From 24d39620fb7299590220af8ea3cb4d61fdb0c9a2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 12 Jun 2020 13:07:50 +1000 Subject: Cleanup: split deform functions that take target object-data Prefer meaningful function names over redundant NULL arguments. Also clarify variable names as it wasn't obvious the object-data is part of the object target. --- .../gpencil_modifiers/intern/MOD_gpencilarmature.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'source/blender/gpencil_modifiers') diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c index a6c071e7103..8e7fe872358 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c @@ -83,16 +83,15 @@ static void gpencil_deform_verts(ArmatureGpencilModifierData *mmd, Object *targe } /* deform verts */ - BKE_armature_deform_coords(mmd->object, - target, - NULL, - (float(*)[3])all_vert_coords, - NULL, - gps->totpoints, - mmd->deformflag, - (float(*)[3])mmd->prevCos, - mmd->vgname, - gps); + BKE_armature_deform_coords_with_gpencil_stroke(mmd->object, + target, + (float(*)[3])all_vert_coords, + NULL, + gps->totpoints, + mmd->deformflag, + (float(*)[3])mmd->prevCos, + mmd->vgname, + gps); /* Apply deformed coordinates */ pt = gps->points; -- cgit v1.2.3