Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-07-05 12:57:11 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-07-05 12:57:11 +0400
commit3d5ae95986268f693a0d3c98f875eb0c12b96be8 (patch)
tree785b025e996395143e06e98f23604db9701f5303 /source/blender/editors/curve
parent1ff54f91ff52c53d98cbecf9988ad051da10018d (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.c5
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);