Revert "Fix: GPv3: Move dvert copy out of parallel for"

This reverts commit 31b8323b93.

Allocating memory in parallel is fine as long as each threads only
writes to the memory it allocates, which is the case here.
This commit is contained in:
Falk David
2024-02-16 15:26:23 +01:00
parent 31b8323b93
commit eabb4f16ce

View File

@@ -206,6 +206,9 @@ void legacy_gpencil_frame_to_grease_pencil_drawing(const bGPDframe &gpf,
dst_rotations[point_i] = pt.uv_rot;
dst_vertex_colors[point_i] = ColorGeometry4f(pt.vert_color);
dst_selection[point_i] = (pt.flag & GP_SPOINT_SELECT) != 0;
if (use_dverts && gps->dvert) {
copy_dvert(gps->dvert[point_i], dst_dverts[point_i]);
}
}
});
@@ -218,12 +221,6 @@ void legacy_gpencil_frame_to_grease_pencil_drawing(const bGPDframe &gpf,
dst_deltatimes[point_i] = pt.time - pt_prev.time;
}
});
if (use_dverts && gps->dvert) {
for (const int point_i : src_points.index_range()) {
copy_dvert(gps->dvert[point_i], dst_dverts[point_i]);
}
}
}
delta_times.finish();