diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-06-12 06:07:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-06-12 06:53:25 +0300 |
commit | 24d39620fb7299590220af8ea3cb4d61fdb0c9a2 (patch) | |
tree | 55841418c0652150df2e50ba5f34597f2aee7aef /source/blender/gpencil_modifiers | |
parent | c02baf8b50db1fa8053ec09f4e9588c430ca01d0 (diff) |
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.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilarmature.c | 19 |
1 files changed, 9 insertions, 10 deletions
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; |