GPUBuffers: Fix wrong assert
authorClément Foucault <foucault.clem@gmail.com>
Tue, 23 Apr 2019 12:30:52 +0000 (14:30 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 23 Apr 2019 18:35:02 +0000 (20:35 +0200)
For good this time...

forgot to commit it in the previous commit rBedde48f57844.

source/blender/gpu/intern/gpu_buffers.c

index ebe5fcf..a2f6388 100644 (file)
@@ -162,7 +162,6 @@ static void gpu_pbvh_batch_init(GPU_PBVH_Buffers *buffers, GPUPrimType prim)
   }
 
   if (buffers->lines == NULL) {
-    BLI_assert(buffers->index_lines_buf != NULL);
     buffers->lines = GPU_batch_create(GPU_PRIM_LINES,
                                       buffers->vert_buf,
                                       /* can be NULL if buffer is empty */