diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-24 19:10:47 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2020-09-24 19:10:47 +0300 |
commit | 3997630b3af5e47851253d3b17cb42f1202e79b1 (patch) | |
tree | 0c6382c699ab2ab42c0cc57708f5919b1868b855 /source | |
parent | 119d0cd2ab14ec332b2b6d23b1cf671b56131438 (diff) |
Cleanup: Break early in normal validation
Before we would continue checking normal array values even if we knew
that the normal array would be conidered valid.
Break early to avoid excess iterations and make the code more clear what
it is doing.
No functional changes.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_validate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh_validate.c b/source/blender/blenkernel/intern/mesh_validate.c index 6e57dcee427..af6ffe32214 100644 --- a/source/blender/blenkernel/intern/mesh_validate.c +++ b/source/blender/blenkernel/intern/mesh_validate.c @@ -322,6 +322,7 @@ bool BKE_mesh_validate_arrays(Mesh *mesh, if (mv->no[j] != 0) { fix_normal = false; + break; } } |