Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_curve_api.c
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | void RNA_api_curve(StructRNA *srna) | ||||
| func = RNA_def_function(srna, "validate_material_indices", "BKE_curve_material_index_validate"); | func = RNA_def_function(srna, "validate_material_indices", "BKE_curve_material_index_validate"); | ||||
| RNA_def_function_ui_description( | RNA_def_function_ui_description( | ||||
| func, | func, | ||||
| "Validate material indices of splines or letters, return True when the curve " | "Validate material indices of splines or letters, return True when the curve " | ||||
| "has had invalid indices corrected (to default 0)"); | "has had invalid indices corrected (to default 0)"); | ||||
| parm = RNA_def_boolean(func, "result", 0, "Result", ""); | parm = RNA_def_boolean(func, "result", 0, "Result", ""); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| RNA_def_function(srna, "update_gpu_tag", "rna_Curve_update_gpu_tag"); | func = RNA_def_function(srna, "update_gpu_tag", "rna_Curve_update_gpu_tag"); | ||||
| } | } | ||||
| void RNA_api_curve_nurb(StructRNA *srna) | void RNA_api_curve_nurb(StructRNA *srna) | ||||
| { | { | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| func = RNA_def_function(srna, "calc_length", "rna_Nurb_calc_length"); | func = RNA_def_function(srna, "calc_length", "rna_Nurb_calc_length"); | ||||
| Show All 23 Lines | |||||