5c57e24fea
Removes unused GPv2 functions in blenkernel. Notes: - Functions for layer masks are still in use, but annotations never have layer masks in the first place. Would be good to remove the data structures so we can remove the functions too. - Some multi-frame edit functions are also still nominally used, but multi-frame editing is not an active feature for annotations. This should also be removed. Pull Request: https://projects.blender.org/blender/blender/pulls/128709
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/* SPDX-FileCopyrightText: 2008 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bke
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Main;
|
|
struct Object;
|
|
struct Scene;
|
|
struct bGPDcurve;
|
|
struct bGPDlayer;
|
|
struct bGPDstroke;
|
|
struct bGPdata;
|
|
|
|
/**
|
|
* Creates a bGPDcurve by doing a cubic curve fitting on the grease pencil stroke points.
|
|
*/
|
|
struct bGPDcurve *BKE_gpencil_stroke_editcurve_generate(struct bGPDstroke *gps,
|
|
float error_threshold,
|
|
float corner_angle,
|
|
float stroke_radius);
|
|
/**
|
|
* Sync the selection from stroke to edit-curve.
|
|
*/
|
|
void BKE_gpencil_editcurve_stroke_sync_selection(struct bGPdata *gpd,
|
|
struct bGPDstroke *gps,
|
|
struct bGPDcurve *gpc);
|
|
/**
|
|
* Recalculate the handles of the edit curve of a grease pencil stroke.
|
|
*/
|
|
void BKE_gpencil_editcurve_recalculate_handles(struct bGPDstroke *gps);
|
|
void BKE_gpencil_editcurve_subdivide(struct bGPDstroke *gps, int cuts);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|