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 1 deletions
Showing only changes of commit f5a5a9ca30 - Show all commits

View File

@ -411,7 +411,7 @@ struct EraseOperationExecutor {
if (src_curve_points.size() == 1) {
/* One-point stroke : just check if the point is inside the eraser. */
int ring_index = -1;
int ring_index = 0;
for (const EraserRing &eraser_point : rings) {
const int64_t src_point = src_curve_points.first();
const int64_t squared_distance = math::distance_squared(
@ -423,6 +423,7 @@ struct EraseOperationExecutor {
(squared_distance <= eraser_point.squared_radius)) {
r_point_ring[src_point] = {ring_index, PointCircleSide::Inside};
}
++ring_index;
}
continue;
}