From 9784a1169d4d3c13b8d0b6747cea661ad1df1748 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Aug 2010 03:42:26 +0000 Subject: rna naming: verts -> vertices --- source/blender/makesrna/intern/rna_mesh.c | 8 ++++---- source/blender/makesrna/intern/rna_mesh_api.c | 2 +- source/blender/makesrna/rna_cleanup/rna_properties.txt | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'source/blender') diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 9ee23c954f6..4faebe7c3f0 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -1148,7 +1148,7 @@ static void rna_def_medge(BlenderRNA *brna) RNA_def_struct_path_func(srna, "rna_MeshEdge_path"); RNA_def_struct_ui_icon(srna, ICON_EDGESEL); - prop= RNA_def_property(srna, "verts", PROP_INT, PROP_UNSIGNED); + prop= RNA_def_property(srna, "vertices", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "v1"); RNA_def_property_array(prop, 2); RNA_def_property_ui_text(prop, "Vertices", "Vertex indices"); @@ -1212,7 +1212,7 @@ static void rna_def_mface(BlenderRNA *brna) RNA_def_struct_ui_icon(srna, ICON_FACESEL); // XXX allows creating invalid meshes - prop= RNA_def_property(srna, "verts", PROP_INT, PROP_UNSIGNED); + prop= RNA_def_property(srna, "vertices", PROP_INT, PROP_UNSIGNED); RNA_def_property_array(prop, 4); RNA_def_property_flag(prop, PROP_DYNAMIC); RNA_def_property_dynamic_array_funcs(prop, "rna_MeshFace_verts_get_length"); @@ -1220,7 +1220,7 @@ static void rna_def_mface(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Vertices", "Vertex indices"); /* leaving this fixed size array for foreach_set used in import scripts */ - prop= RNA_def_property(srna, "verts_raw", PROP_INT, PROP_UNSIGNED); + prop= RNA_def_property(srna, "vertices_raw", PROP_INT, PROP_UNSIGNED); RNA_def_property_int_sdna(prop, NULL, "v1"); RNA_def_property_array(prop, 4); RNA_def_property_ui_text(prop, "Vertices", "Fixed size vertex indices array"); @@ -1640,7 +1640,7 @@ static void rna_def_mesh(BlenderRNA *brna) RNA_def_struct_ui_text(srna, "Mesh", "Mesh datablock defining geometric surfaces"); RNA_def_struct_ui_icon(srna, ICON_MESH_DATA); - prop= RNA_def_property(srna, "verts", PROP_COLLECTION, PROP_NONE); + prop= RNA_def_property(srna, "vertices", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "mvert", "totvert"); RNA_def_property_struct_type(prop, "MeshVertex"); RNA_def_property_ui_text(prop, "Vertices", "Vertices of the mesh"); diff --git a/source/blender/makesrna/intern/rna_mesh_api.c b/source/blender/makesrna/intern/rna_mesh_api.c index 1657e0e64d7..97252ce754e 100644 --- a/source/blender/makesrna/intern/rna_mesh_api.c +++ b/source/blender/makesrna/intern/rna_mesh_api.c @@ -61,7 +61,7 @@ void RNA_api_mesh(StructRNA *srna) func= RNA_def_function(srna, "add_geometry", "ED_mesh_geometry_add"); RNA_def_function_flag(func, FUNC_USE_REPORTS); - parm= RNA_def_int(func, "verts", 0, 0, INT_MAX, "Number", "Number of vertices to add.", 0, INT_MAX); + parm= RNA_def_int(func, "vertices", 0, 0, INT_MAX, "Number", "Number of vertices to add.", 0, INT_MAX); RNA_def_property_flag(parm, PROP_REQUIRED); parm= RNA_def_int(func, "edges", 0, 0, INT_MAX, "Number", "Number of edges to add.", 0, INT_MAX); RNA_def_property_flag(parm, PROP_REQUIRED); diff --git a/source/blender/makesrna/rna_cleanup/rna_properties.txt b/source/blender/makesrna/rna_cleanup/rna_properties.txt index 09e873268e1..b463cd9cc30 100644 --- a/source/blender/makesrna/rna_cleanup/rna_properties.txt +++ b/source/blender/makesrna/rna_cleanup/rna_properties.txt @@ -1475,7 +1475,7 @@ #+ * ID|Mesh.uv_texture_stencil_index -> uv_texture_stencil_index: int "Mask UV texture index" #+ * ID|Mesh.uv_textures -> uv_textures: collection, "(read-only)" #+ * ID|Mesh.vertex_colors -> vertex_colors: collection, "(read-only)" - + * ID|Mesh.verts -> vertices: collection, "(read-only) Vertices of the mesh" +#ID|Mesh.vertices -> vertices: collection, "(read-only) Vertices of the mesh" #TODO MOVE TO ELEMENTS * ID|MetaBall.active_element -> active_element: pointer, "(read-only) Last selected element" #+ * ID|MetaBall.animation_data -> animation_data: pointer, "(read-only) Animation data for this datablock" #+ * ID|MetaBall.elements -> elements: collection, "(read-only) Meta elements" @@ -2163,7 +2163,7 @@ #+ * MeshEdge.select -> select: boolean "NO DESCRIPTION" + * MeshEdge.seam -> use_seam: boolean "Seam edge for UV unwrapping" + * MeshEdge.sharp -> use_sharp: boolean "Sharp edge for the EdgeSplit modifier" - + * MeshEdge.verts -> vertices: int[2] "Vertex indices" +#MeshEdge.vertices -> vertices: int[2] "Vertex indices" #+ * MeshFace.area -> area: float, "(read-only) read only area of the face" #+ * MeshFace.hide -> hide: boolean "NO DESCRIPTION" #+ * MeshFace.index -> index: int, "(read-only) Index number of the vertex" @@ -2171,8 +2171,8 @@ #+ * MeshFace.normal -> normal: float[3], "(read-only) local space unit length normal vector for this face" #+ * MeshFace.select -> select: boolean "NO DESCRIPTION" + * MeshFace.smooth -> use_smooth: boolean "NO DESCRIPTION" - + * MeshFace.verts -> vertices: int[4] "Vertex indices" - + * MeshFace.verts_raw -> vertices_raw: int[4] "Fixed size vertex indices array" +#MeshFace.vertices -> vertices: int[4] "Vertex indices" +#MeshFace.vertices_raw -> vertices_raw: int[4] "Fixed size vertex indices array" #+ * MeshFaces.active -> active: int "The active face for this mesh" #+ * MeshFaces.active_tface -> active_tface: pointer, "(read-only) Active Texture Face" #+ * MeshFloatProperty.value -> value: float "NO DESCRIPTION" @@ -4602,4 +4602,4 @@ + * WorldStarsSettings.color_randomization -> color_random: float "Randomize star colors" + * WorldStarsSettings.min_distance -> distance_min: float "Minimum distance to the camera for stars" #+ * WorldStarsSettings.size -> size: float "Average screen dimension of stars" -#+ * WorldStarsSettings.use_stars -> use_stars: boolean "Enable starfield generation[651123 refs]" +#+ * WorldStarsSettings.use_stars -> use_stars: boolean "Enable starfield generation[651125 refs]" -- cgit v1.2.3