Mesh: Lines index buffer creation improvement #120720

Merged
Hans Goudey merged 66 commits from HooglyBoogly/blender:mesh-extract-lines-fix into main 2024-04-30 15:55:01 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 03b72e0d40 - Show all commits

View File

@ -36,8 +36,8 @@ template<typename GPUType>
static void extract_normals(const Span<float3> src, MutableSpan<GPUType> dst)
{
threading::parallel_for(src.index_range(), 2048, [&](const IndexRange range) {
for (const int vert : range) {
dst[vert] = convert_normal<GPUType>(src[vert]);
for (const int i : range) {
dst[i] = convert_normal<GPUType>(src[i]);
}
});
}