diff options
author | Patrick Busch <Xylvier> | 2021-03-19 00:25:36 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-19 00:25:36 +0300 |
commit | fc62d38ce105857f1c3400ba67271db7f2873a29 (patch) | |
tree | 5a4ac2a1b5def6aed716b084dc520baa637e648e /source/blender/makesrna/intern/rna_curveprofile.c | |
parent | 7e3efac9a85743dbe6a3646170a4f4475bf91e6c (diff) |
Python API: Expose CurveProfile Reset View function
Allow python access to the `reset_view` functionality which before
was only available through the menu. This was suggested for
consistency after D10561.
Differential Revision: https://developer.blender.org/D10595
Diffstat (limited to 'source/blender/makesrna/intern/rna_curveprofile.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_curveprofile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_curveprofile.c b/source/blender/makesrna/intern/rna_curveprofile.c index 25f0c5fb9b4..bb54d55f8bd 100644 --- a/source/blender/makesrna/intern/rna_curveprofile.c +++ b/source/blender/makesrna/intern/rna_curveprofile.c @@ -281,6 +281,9 @@ static void rna_def_curveprofile(BlenderRNA *brna) func = RNA_def_function(srna, "update", "rna_CurveProfile_update"); RNA_def_function_ui_description(func, "Refresh internal data, remove doubles and clip points"); + func = RNA_def_function(srna, "reset_view", "BKE_curveprofile_reset_view"); + RNA_def_function_ui_description(func, "Reset the curve profile grid to its clipping size"); + func = RNA_def_function(srna, "initialize", "rna_CurveProfile_initialize"); parm = RNA_def_int(func, "totsegments", |