diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-07-05 12:57:11 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-07-05 12:57:11 +0400 |
commit | 3d5ae95986268f693a0d3c98f875eb0c12b96be8 (patch) | |
tree | 785b025e996395143e06e98f23604db9701f5303 /source/blender/editors/curve | |
parent | 1ff54f91ff52c53d98cbecf9988ad051da10018d (diff) |
Fix #27863: converting curve spline type from python crashes.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 99aebfffaee..06d88b16fa8 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -3535,6 +3535,11 @@ static int convertspline(short type, Nurb *nu) return 0; } +void ED_nurb_set_spline_type(Nurb *nu, int type) +{ + convertspline(type, nu); +} + static int set_spline_type_exec(bContext *C, wmOperator *op) { Object *obedit= CTX_data_edit_object(C); |