diff options
author | Hans Goudey <h.goudey@me.com> | 2021-02-13 01:06:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-02-13 01:06:17 +0300 |
commit | cdb3cbd644013e466943f623f9080cfdb9ca6f12 (patch) | |
tree | 19a3d9b7d4e7d3a7505d5d7f98c89b86c8c46988 /source/blender/blenkernel/BKE_displist.h | |
parent | 85f667424192f21b6875d234bc8579628a982729 (diff) |
Cleanup: Simplify three functions in displist.c
A few related improvements to the three functions:
- Reduce variable scope
- Use for loops instead of while loops
- Use const, bool instead of int
- Generally make logic easier to read
Diffstat (limited to 'source/blender/blenkernel/BKE_displist.h')
-rw-r--r-- | source/blender/blenkernel/BKE_displist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_displist.h b/source/blender/blenkernel/BKE_displist.h index b2502031029..86145fdfb41 100644 --- a/source/blender/blenkernel/BKE_displist.h +++ b/source/blender/blenkernel/BKE_displist.h @@ -113,7 +113,7 @@ void BKE_displist_make_mball_forRender(struct Depsgraph *depsgraph, struct ListBase *dispbase); bool BKE_displist_surfindex_get(DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4); -void BKE_displist_fill(struct ListBase *dispbase, +void BKE_displist_fill(const struct ListBase *dispbase, struct ListBase *to, const float normal_proj[3], const bool flipnormal); |