Fix assert in gpencil_batches_ensure

This commit is contained in:
Campbell Barton 2021-06-05 17:13:12 +10:00
parent c7fee64dea
commit 3c9c557580
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ static void gpencil_batches_ensure(Object *ob, GpencilBatchCache *cache, int cfr
if (cache->vbo == NULL) {
/* Should be discarded together. */
BLI_assert(cache->vbo == NULL && cache->ibo == NULL);
BLI_assert(cache->stroke_batch == NULL && cache->stroke_batch == NULL);
BLI_assert(cache->fill_batch == NULL && cache->stroke_batch == NULL);
/* TODO/PERF: Could be changed to only do it if needed.
* For now it's simpler to assume we always need it
* since multiple viewport could or could not need it.