Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_main_api.c
| Context not available. | |||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| func = RNA_def_function(srna, "new", "BKE_gpencil_data_addnew"); | func = RNA_def_function(srna, "new", "BKE_gpencil_data_addnew"); | ||||
| RNA_def_function_flag(func, FUNC_NO_SELF); | |||||
| parm = RNA_def_string(func, "name", "GreasePencil", 0, "", "New name for the data-block"); | parm = RNA_def_string(func, "name", "GreasePencil", 0, "", "New name for the data-block"); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| /* return type */ | /* return type */ | ||||
| Context not available. | |||||