diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-26 01:23:14 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-26 01:23:14 +0300 |
commit | 1598ab9639a8ccc6bbed3d12bd9faf7eab5ecbd8 (patch) | |
tree | a249602f8e1e3b5813e04d7c90fb72905e7cbe07 /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | bdf4e1596d4560c0bb1d79cd5344b3e6524e1037 (diff) | |
parent | 7aa0be4b32bdbee61ea732f43175c8bc6585fc98 (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index e9f1012f930..79a080cfccd 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -339,11 +339,7 @@ static void drw_mesh_attributes_merge(DRW_MeshAttributes *dst, /* Return true if all requests in b are in a. */ static bool drw_mesh_attributes_overlap(DRW_MeshAttributes *a, DRW_MeshAttributes *b) { - if (a->num_requests != b->num_requests) { - return false; - } - - for (int i = 0; i < a->num_requests; i++) { + for (int i = 0; i < b->num_requests; i++) { if (!has_request(a, b->requests[i])) { return false; } |