Sculpt: Initialize hairs with custom radius #118339

Merged
Hans Goudey merged 10 commits from Zyq-XDz/blender:custom-hair-radius into main 2024-02-27 18:22:16 +01:00

10 Commits

Author SHA1 Message Date
7dd4bbf695 small fixes 2024-02-28 00:32:42 +08:00
afc669348c Sculpt: revised 2024-02-28 00:20:47 +08:00
d7c853ae31 Sculpt: Add radius attribution only if interpolation is turned off
Interpolation On: interpolate if the radius attribute exists, or skip interpolation.

Interpolation Off: Check if the radius attribute does not exist with '''lookup_or_add_for_write_span'''. initialize radius with
constant number
2024-02-21 10:55:55 +08:00
de863d094b Sculpt: Interpolate the radius between curves
Now the interpolation will consider the the variation of the radius within neighbors.
2024-02-17 18:16:17 +08:00
22e8eec69c Sculpt: embeded radius interpolation within ``add_curves_on_mesh``
Now users could decide to interpolate the initial radius or not. And I moved the code of initialization from ```curves_sculpt_add.cc``` and ```curves_sculpt_density.cc``` into ```add_curves_on_mesh.cc```
2024-02-16 11:17:28 +08:00
e396e3e08f 2.15 formatting 2024-02-15 23:50:27 +08:00
996fe9edc6 2.15 initialize hair radius with slider 2024-02-15 23:11:09 +08:00
1546f26a6b 2.15 initialize hair radius with 1.0f 2024-02-15 18:12:51 +08:00
bb87ff6025
Merge branch 'blender:blender-v4.1-release' into blender-v4.1-release 2024-02-14 23:17:37 +08:00
86c0cc06ea 2.14 BrushCurvesSculptSettings::curve_radius for initial radius 2024-02-14 23:17:01 +08:00