GPv3: Soft mode for the Eraser tool #110310
|
@ -743,12 +743,7 @@ struct EraseOperationExecutor {
|
|||
/* Write the opacity attribute*/
|
||||
SpanAttributeWriter<float> dst_opacity = dst_attributes.lookup_or_add_for_write_span<float>(
|
||||
opacity_attr, ATTR_DOMAIN_POINT);
|
||||
|
||||
threading::parallel_for(dst.points_range(), 256, [&](const IndexRange dst_points) {
|
||||
for (const int dst_point : dst_points) {
|
||||
dst_opacity.span[dst_point] = src_new_opacity[dst_point];
|
||||
}
|
||||
});
|
||||
array_utils::gather(src_new_opacity.as_span(), dst_to_src_point.as_span(), dst_opacity.span);
|
||||
dst_opacity.finish();
|
||||
|
||||
/* Note : the opacities were changed, so we still need to tag for changes. */
|
||||
|
|
Loading…
Reference in New Issue