Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_mesh.c
| Show First 20 Lines • Show All 3,233 Lines • ▼ Show 20 Lines | static void rna_def_mesh_polygons(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| func = RNA_def_function(srna, "add", "ED_mesh_polys_add"); | func = RNA_def_function(srna, "add", "ED_mesh_polys_add"); | ||||
| RNA_def_function_flag(func, FUNC_USE_REPORTS); | RNA_def_function_flag(func, FUNC_USE_REPORTS); | ||||
| parm = RNA_def_int( | parm = RNA_def_int( | ||||
| func, "count", 0, 0, INT_MAX, "Count", "Number of polygons to add", 0, INT_MAX); | func, "count", 0, 0, INT_MAX, "Count", "Number of polygons to add", 0, INT_MAX); | ||||
| RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| } | } | ||||
| /* Defines a read-only vector type since normals should not be modified manually. */ | /* Defines a read-only vector type since normals can not be modified manually. */ | ||||
| static void rna_def_normal_layer_value(BlenderRNA *brna) | static void rna_def_normal_layer_value(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna = RNA_def_struct(brna, "MeshNormalValue", NULL); | StructRNA *srna = RNA_def_struct(brna, "MeshNormalValue", NULL); | ||||
| RNA_def_struct_sdna(srna, "vec3f"); | RNA_def_struct_sdna(srna, "vec3f"); | ||||
| RNA_def_struct_ui_text(srna, "Mesh Normal Vector", "Vector in a mesh normal array"); | RNA_def_struct_ui_text(srna, "Mesh Normal Vector", "Vector in a mesh normal array"); | ||||
| PropertyRNA *prop = RNA_def_property(srna, "vector", PROP_FLOAT, PROP_DIRECTION); | PropertyRNA *prop = RNA_def_property(srna, "vector", PROP_FLOAT, PROP_DIRECTION); | ||||
| RNA_def_property_ui_text(prop, "Vector", "3D vector"); | RNA_def_property_ui_text(prop, "Vector", "3D vector"); | ||||
| ▲ Show 20 Lines • Show All 1,185 Lines • Show Last 20 Lines | |||||