diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-12-03 18:19:08 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-12-03 18:22:27 +0300 |
commit | 3235a3081c12e99d4bec350eff04b3073c07cdf8 (patch) | |
tree | c75a7e0edd39f81ca879de8cc2d27c595c6c35fd /source/blender/blenkernel/BKE_mesh.h | |
parent | 957435785cd04dd68307c390a5063026917e836e (diff) |
Fix T57858: Add validation callback to CustomData layers.
Our mesh validation was only checking cd layout so far, not their actual
data. While this might only be needed for a few types, this is a
required addition for things like imported UVs, else we have no way to
avoid nasty things like NANs & co.
Note that more layer types may need that callback, time will say. For
now added it to some obvious missing cases...
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_mesh.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_mesh.h b/source/blender/blenkernel/BKE_mesh.h index aba42820519..1e0474fc933 100644 --- a/source/blender/blenkernel/BKE_mesh.h +++ b/source/blender/blenkernel/BKE_mesh.h @@ -487,8 +487,10 @@ bool BKE_mesh_validate_arrays( bool *r_change); bool BKE_mesh_validate_all_customdata( - struct CustomData *vdata, struct CustomData *edata, - struct CustomData *ldata, struct CustomData *pdata, + struct CustomData *vdata, const uint totvert, + struct CustomData *edata, const uint totedge, + struct CustomData *ldata, const uint totloop, + struct CustomData *pdata, const uint totpoly, const bool check_meshmask, const bool do_verbose, const bool do_fixes, bool *r_change); |