diff options
Diffstat (limited to 'source/blender/editors/include/ED_gpencil.h')
-rw-r--r-- | source/blender/editors/include/ED_gpencil.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 398a1630cf6..17aa407bd76 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -79,6 +79,12 @@ typedef enum eGP_ReprojectModes { GP_REPROJECT_KEEP, } eGP_ReprojectModes; +/* Target object modes. */ +typedef enum eGP_TargetObjectMode { + GP_TARGET_OB_NEW = 0, + GP_TARGET_OB_SELECTED = 1, +} eGP_TargetObjectMode; + /* ------------- Grease-Pencil Runtime Data ---------------- */ /* Temporary 'Stroke Point' data (2D / screen-space) @@ -308,7 +314,8 @@ void ED_gpencil_update_color_uv(struct Main *bmain, struct Material *mat); * 2 - Hit in point B * 3 - Hit in point A and B */ -int ED_gpencil_select_stroke_segment(struct bGPDlayer *gpl, +int ED_gpencil_select_stroke_segment(struct bGPdata *gpd, + struct bGPDlayer *gpl, struct bGPDstroke *gps, struct bGPDspoint *pt, bool select, @@ -318,6 +325,7 @@ int ED_gpencil_select_stroke_segment(struct bGPDlayer *gpl, float r_hitb[3]); void ED_gpencil_select_toggle_all(struct bContext *C, int action); +void ED_gpencil_select_curve_toggle_all(struct bContext *C, int action); /* Ensure stroke sbuffer size is enough */ struct tGPspoint *ED_gpencil_sbuffer_ensure(struct tGPspoint *buffer_array, |