DRW: Fix wrong test condition
Fixes the warning: address of array 'cmd->draw.batch->inst' will always evaluate to 'true'
This commit is contained in:
parent
ec9b836d3b
commit
bf1b323b15
Notes:
blender-bot
2023-02-14 06:17:17 +01:00
Referenced by issue #74663, GPencil – Fills are Flickering
|
@ -1345,7 +1345,7 @@ static void draw_shgroup(DRWShadingGroup *shgroup, DRWState pass_state)
|
|||
break;
|
||||
case DRW_CMD_DRAW:
|
||||
if (!USE_BATCHING || state.obmats_loc == -1 || (G.f & G_FLAG_PICKSEL) ||
|
||||
cmd->draw.batch->inst) {
|
||||
cmd->draw.batch->inst[0]) {
|
||||
draw_call_single_do(
|
||||
shgroup, &state, cmd->draw.batch, cmd->draw.handle, 0, 0, 0, 0, true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue