diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-05-15 10:33:22 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-05-15 10:33:22 +0300 |
commit | f9751889df35c81501c60abd1af98252d80ea3fc (patch) | |
tree | 2da53fad1a9aaf704bef3612361bf1747c321fff /source/blender/editors/sculpt_paint | |
parent | 074c695a0d4de88550be71181690639ab6b16dcf (diff) |
Fix T81715: Unprojected radius mode messes up sculpt texture radius
We really need to fix how unprojected radius (scene unit) works.
What happened is the paint code updates the brush's normal radius
with the current unprojected pixel radius, which was then
used by texture brush tiled mode.
To fix this I just cached the pixel radius at stroke start in
UnifiedPaintSettings->start_pixel_radius.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index d2005473512..210cffcbcda 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -923,6 +923,8 @@ PaintStroke *paint_stroke_new(bContext *C, BKE_paint_set_overlay_override(br->overlay_flags); + ups->start_pixel_radius = BKE_brush_size_get(CTX_data_scene(C), br); + return stroke; } |