23static void rna_Curve_transform(
Curve *cu,
const float mat[16],
bool shape_keys)
30static void rna_Curve_update_gpu_tag(
Curve *cu)
35static float rna_Nurb_calc_length(
Nurb *nu,
int resolution_u)
40static void rna_Nurb_valid_message(
Nurb *nu,
int direction,
const char **r_result,
int *result_len)
42 const bool is_surf = nu->
pntsv > 1;
43 const short type = nu->
type;
60 const int buf_len = strlen(buf);
62 *result_len = buf_len;
79 parm =
RNA_def_float_matrix(func,
"matrix", 4, 4,
nullptr, 0.0f, 0.0f,
"",
"Matrix", 0.0f, 0.0f);
83 func =
RNA_def_function(srna,
"validate_material_indices",
"BKE_curve_material_index_validate");
86 "Validate material indices of splines or letters, return True when the curve "
87 "has had invalid indices corrected (to default 0)");
107 "Spline resolution to be used, 0 defaults to the resolution_u",
116 "Length of the polygonaly approximated spline",
124 func,
"direction", 0, 0, 1,
"Direction",
"The direction where 0-1 maps to U-V", 0, 1);
132 "The message or an empty string when there is no error");
void BKE_curve_batch_cache_dirty_tag(Curve *cu, int mode)
float BKE_nurb_calc_length(const Nurb *nu, int resolution)
@ BKE_CURVE_BATCH_DIRTY_ALL
void BKE_curve_transform(Curve *cu, const float mat[4][4], bool do_keys, bool do_props)
bool BKE_nurb_valid_message(int pnts, short order, short flag, short type, bool is_surf, int dir, char *message_dst, size_t maxncpy)
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void DEG_id_tag_update(ID *id, unsigned int flags)
void RNA_api_curve_nurb(StructRNA *srna)
void RNA_api_curve(StructRNA *srna)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
PropertyRNA * RNA_def_float_distance(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
PropertyRNA * RNA_def_float_matrix(StructOrFunctionRNA *cont_, const char *identifier, const int rows, const int columns, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)