diff options
author | Joshua Leung <aligorith@gmail.com> | 2016-03-27 16:33:14 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2016-03-27 17:21:28 +0300 |
commit | 00cfbeef11c62364e343df27d00fd363f625f2ad (patch) | |
tree | 9e8e3537c90da68f5a2147925369da096a75fd21 /source/blender/editors/gpencil/gpencil_intern.h | |
parent | bfbbc8ec4001243ad5e9954665ddf9621329319f (diff) |
Code Cleanup - Style tweaks
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_intern.h')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_intern.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/source/blender/editors/gpencil/gpencil_intern.h b/source/blender/editors/gpencil/gpencil_intern.h index 5dd491c66d3..d6d9d7cb347 100644 --- a/source/blender/editors/gpencil/gpencil_intern.h +++ b/source/blender/editors/gpencil/gpencil_intern.h @@ -126,6 +126,23 @@ extern ListBase gp_strokes_copypastebuf; void gp_stroke_delete_tagged_points(bGPDframe *gpf, bGPDstroke *gps, bGPDstroke *next_stroke, int tag_flags); + +/** + * Apply smooth to stroke + * + * \param gps Stroke to smooth + * \param i Point index + * \param inf Smooth factor +*/ +bool gp_smooth_stroke(bGPDstroke *gps, int i, float inf); + +/** + * Subdivide a stroke + * \param gps Stroke data + * \param new_totpoints Total number of points +*/ +void gp_subdivide_stroke(bGPDstroke *gps, const int new_totpoints); + /* Layers Enums -------------------------------------- */ struct EnumPropertyItem *ED_gpencil_layers_enum_itemf(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, bool *r_free); @@ -208,21 +225,6 @@ void gpencil_undo_init(struct bGPdata *gpd); void gpencil_undo_push(struct bGPdata *gpd); void gpencil_undo_finish(void); -/** -* Apply smooth to stroke -* -* gps Stroke to smooth -* i Point index -* inf Smooth factor -*/ -bool gp_smooth_stroke(bGPDstroke *gps, int i, float inf); - -/* subdivide a stroke -* gps Stroke data -* new_totpoints Total number of points -*/ -void gp_subdivide_stroke(bGPDstroke *gps, const int new_totpoints); - /******************************************************* */ /* FILTERED ACTION DATA - TYPES ---> XXX DEPRECEATED OLD ANIM SYSTEM CODE! */ |