Fix T103225: Line Art modifier skips loose edges

1ea169d90e neglected to increase the loose edge count.
This commit is contained in:
Hans Goudey 2022-12-14 17:07:44 -06:00
parent 2dd27d5f06
commit e0fbeb6e7b
Notes: blender-bot 2023-02-14 06:46:23 +01:00
Referenced by issue #103225, GPencil: Line Art modifier generates no strokes from Loose Edges
1 changed files with 3 additions and 3 deletions

View File

@ -2109,11 +2109,11 @@ static void lineart_geometry_object_load(LineartObjectInfo *ob_info,
loose_data.loose_array = static_cast<int *>(
MEM_malloc_arrayN(loose_edges.count, sizeof(int), __func__));
if (loose_edges.count > 0) {
int loose_i = 0;
loose_data.loose_count = 0;
for (const int64_t edge_i : IndexRange(me->totedge)) {
if (loose_edges.is_loose_bits[edge_i]) {
loose_data.loose_array[loose_i] = int(edge_i);
loose_i++;
loose_data.loose_array[loose_data.loose_count] = int(edge_i);
loose_data.loose_count++;
}
}
}