Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-11-03 20:54:08 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-11-03 21:34:58 +0300
commit44dd15880328a3656b447281ce0a4fd5ec2617b7 (patch)
tree01095c335feb4f945875549e04d5b20457708464 /source/blender/draw
parent838d20b990ea97cc97d7a5a39baac824dd479a0e (diff)
DRW: Command: Fix custom group test being always true
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_command.hh2
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;