Animation: Weight Paint select more/less for faces #105607
|
@ -370,7 +370,8 @@ void paintface_select_more(bContext *C, Object *ob, const bool face_step)
|
|||
const Span<MLoop> loops = mesh->loops();
|
||||
const Span<MEdge> edges = mesh->edges();
|
||||
|
||||
for (const int i : select_poly.span.index_range()) {
|
||||
threading::parallel_for(select_poly.span.index_range(), 1024, [&](const IndexRange range) {
|
||||
for (const int i : range) {
|
||||
if (select_poly.span[i] || hide_poly[i]) {
|
||||
continue;
|
||||
}
|
||||
|
@ -393,6 +394,7 @@ void paintface_select_more(bContext *C, Object *ob, const bool face_step)
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
select_poly.finish();
|
||||
Hans Goudey
commented
Blender uses American English spelling, so Blender uses American English spelling, so `neighbor` instead of `neighbor`
|
||||
select_vert.finish();
|
||||
|
@ -430,7 +432,8 @@ void paintface_select_less(bContext *C, Object *ob, const bool face_step)
|
|||
}
|
||||
}
|
||||
|
||||
for (const int i : select_poly.span.index_range()) {
|
||||
threading::parallel_for(select_poly.span.index_range(), 1024, [&](const IndexRange range) {
|
||||
for (const int i : range) {
|
||||
if (!select_poly.span[i] || hide_poly[i]) {
|
||||
continue;
|
||||
}
|
||||
|
@ -453,6 +456,7 @@ void paintface_select_less(bContext *C, Object *ob, const bool face_step)
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
select_poly.finish();
|
||||
paintface_flush_flags(C, ob, true, false);
|
||||
|
|
Loading…
Reference in New Issue
The condition can be avoided by doing something like:
Not sure if it's worth it though, you choose @ChrisLend. Could be applied below as well.
had a look at it but I think it's a bit clearer if the bool is set explicitly so I left it as is