Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-10-12 23:34:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-10-12 23:34:58 +0400
commitb5f820cd874a7b3ca1de81103b99969429adfd6c (patch)
treef2bf19fa8eb0cfe1e23828f10ba845d3bb13b78a /source/blender/makesrna/intern/rna_mesh_api.c
parent0696cf23e5561a2ac65cf5af8881748cc45b8da4 (diff)
added rna api MVert,MFace & MEdge index properties
eg. for v in me.verts: print(v.index) added calc_edges as an option eg. mesh.update(calc_edges=True) This is needed when adding faces to an existing mesh which create new edges.
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_mesh_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh_api.c b/source/blender/makesrna/intern/rna_mesh_api.c
index 3da0e1e6fd4..52ff98f66f0 100644
--- a/source/blender/makesrna/intern/rna_mesh_api.c
+++ b/source/blender/makesrna/intern/rna_mesh_api.c
@@ -72,6 +72,7 @@ void RNA_api_mesh(StructRNA *srna)
RNA_def_function_ui_description(func, "Calculate vertex normals.");
func= RNA_def_function(srna, "update", "ED_mesh_update");
+ RNA_def_boolean(func, "calc_edges", 0, "Calculate Edges", "Force recalculation of edges.");
RNA_def_function_flag(func, FUNC_USE_CONTEXT);
func= RNA_def_function(srna, "add_material", "ED_mesh_material_add");