diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-09 04:27:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-09 04:27:46 +0300 |
commit | fdf60ba4a6b6da523698f7da79137dce7dbdb67e (patch) | |
tree | 12b20e7eb1a710136c02a7063e23fbe9154436ad /source/blender/makesrna/intern/rna_mesh_api.c | |
parent | 2a67a126e87e87f1aaf7bfa3cc2523f014dc1d77 (diff) |
mesh validation function to report errors and help debug bad data generated by modifiers.
detects...
- invalid vertex range for edges/faces
- duplicate indices in edge/face
- duplicate edges/faces in mesh
- missing edges data in faces
At the moment it doesn't correct errors, but eventually it will do this.
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh_api.c b/source/blender/makesrna/intern/rna_mesh_api.c index eaf18920c85..82004f8c0b3 100644 --- a/source/blender/makesrna/intern/rna_mesh_api.c +++ b/source/blender/makesrna/intern/rna_mesh_api.c @@ -56,6 +56,9 @@ void RNA_api_mesh(StructRNA *srna) 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); + + /* Linking errors! */ + /* func= RNA_def_function(srna, "validate", "ED_mesh_validate"); */ } #endif |