Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Context not available. | |||||
| func = RNA_def_function(srna, "add", "rna_VertexGroup_vertex_add"); | func = RNA_def_function(srna, "add", "rna_VertexGroup_vertex_add"); | ||||
| RNA_def_function_ui_description(func, "Add vertices to the group"); | RNA_def_function_ui_description(func, "Add vertices to the group"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | ||||
| /* TODO, see how array size of 0 works, this shouldnt be used */ | /* TODO, see how array size of 0 works, this shouldn't be used */ | ||||
| parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | ||||
| RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | ||||
| parm = RNA_def_float(func, "weight", 0, 0.0f, 1.0f, "", "Vertex weight", 0.0f, 1.0f); | parm = RNA_def_float(func, "weight", 0, 0.0f, 1.0f, "", "Vertex weight", 0.0f, 1.0f); | ||||
| Context not available. | |||||
| func = RNA_def_function(srna, "remove", "rna_VertexGroup_vertex_remove"); | func = RNA_def_function(srna, "remove", "rna_VertexGroup_vertex_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove a vertex from the group"); | RNA_def_function_ui_description(func, "Remove a vertex from the group"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | ||||
| /* TODO, see how array size of 0 works, this shouldnt be used */ | /* TODO, see how array size of 0 works, this shouldn't be used */ | ||||
| parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | ||||
| RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | ||||
| Context not available. | |||||
| func = RNA_def_function(srna, "add", "rna_FaceMap_face_add"); | func = RNA_def_function(srna, "add", "rna_FaceMap_face_add"); | ||||
| RNA_def_function_ui_description(func, "Add vertices to the group"); | RNA_def_function_ui_description(func, "Add vertices to the group"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | ||||
| /* TODO, see how array size of 0 works, this shouldnt be used */ | /* TODO, see how array size of 0 works, this shouldn't be used */ | ||||
| parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | ||||
| RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | ||||
| func = RNA_def_function(srna, "remove", "rna_FaceMap_face_remove"); | func = RNA_def_function(srna, "remove", "rna_FaceMap_face_remove"); | ||||
| RNA_def_function_ui_description(func, "Remove a vertex from the group"); | RNA_def_function_ui_description(func, "Remove a vertex from the group"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | RNA_def_function_flag(func, FUNC_USE_REPORTS | FUNC_USE_SELF_ID); | ||||
| /* TODO, see how array size of 0 works, this shouldnt be used */ | /* TODO, see how array size of 0 works, this shouldn't be used */ | ||||
| parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | parm = RNA_def_int_array(func, "index", 1, NULL, 0, 0, "", "Index List", 0, 0); | ||||
| RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | RNA_def_parameter_flags(parm, PROP_DYNAMIC, PARM_REQUIRED); | ||||
| } | } | ||||
| Context not available. | |||||