diff options
author | Patrick Busch <Xylvier> | 2021-03-02 22:13:36 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-02 22:13:36 +0300 |
commit | 3eb8307160e327f64593d218125d02289285aa17 (patch) | |
tree | 67a536f8ccc390d3936e5edef5239f27e58cbb3d /source/blender/blenkernel/BKE_colortools.h | |
parent | 85421c4fab029ccb0747338715b95910e82229f9 (diff) |
Python API: Expose CurveMapping Reset View function
The Python API for the curve mapping widget offers the `update`
function, but no way to reset the view to the clipping rectangle.
This commit adds a blenkernel function for this operation,
and exposes it to the CurvMapping RNA API. This allows addons
to display a more user-friendly view of the data in this widget.
Differential Revision: https://developer.blender.org/D10561
Diffstat (limited to 'source/blender/blenkernel/BKE_colortools.h')
-rw-r--r-- | source/blender/blenkernel/BKE_colortools.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_colortools.h b/source/blender/blenkernel/BKE_colortools.h index 3631feb5071..ec2262d4f60 100644 --- a/source/blender/blenkernel/BKE_colortools.h +++ b/source/blender/blenkernel/BKE_colortools.h @@ -59,6 +59,7 @@ enum { CURVEMAP_SLOPE_POS_NEG = 2, }; +void BKE_curvemapping_reset_view(struct CurveMapping *cumap); void BKE_curvemap_reset(struct CurveMap *cuma, const struct rctf *clipr, int preset, int slope); void BKE_curvemap_remove(struct CurveMap *cuma, const short flag); bool BKE_curvemap_remove_point(struct CurveMap *cuma, struct CurveMapPoint *cmp); |