Fix T75914: Assert Knife Tool
Actually the assert was incorrect. It tested for an active buffer, but an batch would also be ok.
This commit is contained in:
parent
25e774422c
commit
915866f0d9
Notes:
blender-bot
2023-04-19 22:54:54 +02:00
Referenced by issue #75914, Debug assert is triggered when using the Knife tool
|
@ -384,7 +384,7 @@ void immEnd(void)
|
|||
{
|
||||
#if TRUST_NO_ONE
|
||||
assert(imm.prim_type != GPU_PRIM_NONE); /* make sure we're between a Begin/End pair */
|
||||
assert(imm.active_buffer);
|
||||
assert(imm.active_buffer || imm.batch);
|
||||
#endif
|
||||
|
||||
uint buffer_bytes_used;
|
||||
|
|
Loading…
Reference in New Issue