diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-11-03 20:54:08 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-11-03 21:34:58 +0300 |
commit | 44dd15880328a3656b447281ce0a4fd5ec2617b7 (patch) | |
tree | 01095c335feb4f945875549e04d5b20457708464 | |
parent | 838d20b990ea97cc97d7a5a39baac824dd479a0e (diff) |
DRW: Command: Fix custom group test being always true
-rw-r--r-- | source/blender/draw/intern/draw_command.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_command.hh b/source/blender/draw/intern/draw_command.hh index ab180cc60b1..ed75ac21031 100644 --- a/source/blender/draw/intern/draw_command.hh +++ b/source/blender/draw/intern/draw_command.hh @@ -482,7 +482,7 @@ class DrawMultiBuf { ResourceHandle handle) { /* Custom draw-calls cannot be batched and will produce one group per draw. */ - const bool custom_group = (vertex_first != 0 || vertex_first != -1 || vertex_len != -1); + const bool custom_group = ((vertex_first != 0 && vertex_first != -1) || vertex_len != -1); instance_len = instance_len != -1 ? instance_len : 1; |