diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-09-05 12:02:39 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-09-05 12:03:12 +0300 |
commit | 38508f511023c60c6c16016f8825bb2ad9fad79f (patch) | |
tree | 0098335d6913af941621598af48b8c367f54c173 /source/blender/blenkernel/BKE_gpencil_geom.h | |
parent | 91b1ca5b7b55cde3d344b03a1eba57df139e0f7c (diff) |
GPencil: New BKE function to set stroke start point
This function allows to set the start point for cyclic strokes.
The function is required by a new modifier and operator
that are currently under development.
Diffstat (limited to 'source/blender/blenkernel/BKE_gpencil_geom.h')
-rw-r--r-- | source/blender/blenkernel/BKE_gpencil_geom.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_gpencil_geom.h b/source/blender/blenkernel/BKE_gpencil_geom.h index 33735fddf55..88244ec9d64 100644 --- a/source/blender/blenkernel/BKE_gpencil_geom.h +++ b/source/blender/blenkernel/BKE_gpencil_geom.h @@ -406,7 +406,13 @@ void BKE_gpencil_stroke_join(struct bGPDstroke *gps_a, struct bGPDstroke *gps_b, bool leave_gaps, bool fit_thickness, - bool smooth); + bool smooth, + bool auto_flip); +/** + * Set stroke start point in the selected index. Only works for Cyclic strokes. + * \param start_idx: Index of the point to be the start point. + */ +void BKE_gpencil_stroke_start_set(struct bGPdata *gpd, struct bGPDstroke *gps, int start_idx); /** * Copy the stroke of the frame to all frames selected (except current). */ |