Fix #27863: converting curve spline type from python crashes.
[blender.git] / source / blender / editors / curve / editcurve.c
index 99aebfffaeeedd0ee6c32a2b12a3d85904bbc042..06d88b16fa8e3508144e5a5a73b64dd787e65cc1 100644 (file)
@@ -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);