Currently the delete brush and some other brushes use the line
segment from the current brush position to the previous position
to find curves to interact with. However, this doesn't work well
with more advanced stroke settings that purposefully use
non-contiguous brush sample locations. This commit makes
the delete brush only use the current sample location.
Details
Details
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
| source/blender/editors/sculpt_paint/curves_sculpt_delete.cc | ||
|---|---|---|
| 171–173 | Why is this using the 3d version of the function? | |
| source/blender/editors/sculpt_paint/curves_sculpt_delete.cc | ||
|---|---|---|
| 171–173 | Copy and paste, oops.. What do you think about having a BLI_math_geom.hh with distance_to_line_segment_sq(const T &segment_b, const T &segment_b, const T &point);? Should eliminate this mistake completely and work more nicely with C++ code. | |
| source/blender/editors/sculpt_paint/curves_sculpt_delete.cc | ||
|---|---|---|
| 171–173 | That can be done separately. And I'd like to see a more clear plan for the naming of these functions. | |