Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-05-15 10:36:42 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-05-15 10:36:42 +0300
commita46f34d9b33b258126556e71a749e34cf2637abc (patch)
tree80c2658062555f84a0e4907c0cbd4b67ce8031d2 /source/blender
parent139a4b6a844f6c6ae4c5bbd3c7799c91def7de35 (diff)
parentf9751889df35c81501c60abd1af98252d80ea3fc (diff)
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/brush.c4
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c2
-rw-r--r--source/blender/makesdna/DNA_scene_types.h3
3 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index e8c95869910..083d5af063a 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -2030,7 +2030,7 @@ float BKE_brush_sample_tex_3d(const Scene *scene,
/* leave the coordinates relative to the screen */
/* use unadjusted size for tiled mode */
- invradius = 1.0f / BKE_brush_size_get(scene, br);
+ invradius = 1.0f / ups->start_pixel_radius;
x = point_2d[0];
y = point_2d[1];
@@ -2143,7 +2143,7 @@ float BKE_brush_sample_masktex(
/* leave the coordinates relative to the screen */
/* use unadjusted size for tiled mode */
- invradius = 1.0f / BKE_brush_size_get(scene, br);
+ invradius = 1.0f / ups->start_pixel_radius;
x = point_2d[0];
y = point_2d[1];
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;
}
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index bfe967fcde5..1be27e0354c 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -1255,8 +1255,7 @@ typedef struct UnifiedPaintSettings {
* In case of anchored brushes contains the anchored radius */
float pixel_radius;
float initial_pixel_radius;
-
- char _pad[4];
+ float start_pixel_radius;
/* drawing pressure */
float size_pressure_value;