GPv3: Soft mode for the Eraser tool #110310

Open
Amélie Fondevilla wants to merge 59 commits from amelief/blender:gpv3-erase-operator-soft-mode into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 8 deletions
Showing only changes of commit 34237b96f9 - Show all commits

View File

@ -888,14 +888,8 @@ struct EraseOperationExecutor {
for (bke::AttributeTransferData &attribute : bke::retrieve_attributes_for_transfer(
src_attributes, dst_attributes, ATTR_DOMAIN_MASK_POINT, propagation_info))
{
bke::attribute_math::convert_to_static_type(attribute.dst.span.type(), [&](auto dummy) {
using T = decltype(dummy);
array_utils::gather<T, int>(
attribute.src.typed<T>(), dst_to_src_point, attribute.dst.span.typed<T>());
attribute.dst.finish();
});
bke::attribute_math::gather(attribute.src, dst_to_src_curve, attribute.dst.span);
attribute.dst.finish();
}
/* Write the opacity attribute*/