Unbreak build WITH_TBB disabled

It may be possible to support this case with the non-TBB template,
for now keep the build working.
This commit is contained in:
Campbell Barton 2024-03-31 21:31:00 +11:00
parent 8d12c58f2c
commit c76eed6717
1 changed files with 5 additions and 4 deletions

View File

@ -104,8 +104,9 @@ void TintOperation::on_stroke_begin(const bContext &C, const InputSample & /*sta
screen_positions_per_drawing_.reinitialize(drawings_.size());
threading::parallel_for_each(drawings_.index_range(), [&](const int drawing_index) {
MutableDrawingInfo drawing_info = drawings_[drawing_index];
threading::parallel_for_each(drawings_, [&](const MutableDrawingInfo &drawing_info) {
const int drawing_index = (&drawing_info - drawings_.data());
bke::CurvesGeometry &strokes = drawing_info.drawing.strokes_for_write();
const Layer &layer = *grease_pencil.layers()[drawing_info.layer_index];
@ -244,8 +245,8 @@ void TintOperation::execute_tint(const bContext &C, const InputSample &extension
fill_colors.finish();
};
threading::parallel_for_each(drawings_.index_range(), [&](const int drawing_index) {
const MutableDrawingInfo &info = drawings_[drawing_index];
threading::parallel_for_each(drawings_, [&](const MutableDrawingInfo &info) {
const int drawing_index = (&info - drawings_.data());
execute_tint_on_drawing(info.drawing, drawing_index);
});