Fix #108500: Resolve Metal line loop emulation for armature limits #108512

Merged
Jeroen Bakker merged 1 commits from Jason-Fielder/blender:Fix_108500 into blender-v3.6-release 2023-06-01 15:41:30 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -1058,8 +1058,8 @@ id<MTLBuffer> MTLBatch::get_emulated_toplogy_buffer(GPUPrimType &in_out_prim_typ
case GPU_PRIM_LINE_LOOP: {
int line = 0;
for (line = 0; line < output_prim_count - 1; line++) {
data[line * 3 + 0] = line + 0;
data[line * 3 + 1] = line + 1;
data[line * 2 + 0] = line + 0;
data[line * 2 + 1] = line + 1;
}
/* Closing line. */
data[line * 2 + 0] = line + 0;