diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-12-01 22:29:11 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-12-09 18:57:39 +0300 |
commit | 448669a630d318a5cd090af3083c985740a68e8e (patch) | |
tree | 80183ed40a349268fa97dd42969f90843258c91f /source/blender/makesdna/DNA_scene_types.h | |
parent | 40e2f4469a76f7fab5501b877c929db181dbc6a4 (diff) |
Fix T72092: Clay Strips Brush stroke crash with Brush Detail Size
Some other areas in the brush code outside sculpt mode assume that
pressure is multiplied directly on top of the initial size. This patch
calculates the pixel radius correctly using the brush size from sculpt
mode to get the dyntopo detail size.
When the new brush input system is in place, all these values will come
directly from the brush input code with all the custom curves applied
per brush, so all paint modes will have a correct brush behavior and all
this sculpt mode specific code won't be necessary.
Reviewed By: jbakker
Maniphest Tasks: T72092
Differential Revision: https://developer.blender.org/D6339
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 5336ea381c3..980fbfa72e0 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -1277,6 +1277,9 @@ typedef struct UnifiedPaintSettings { /* radius of brush, premultiplied with pressure. * In case of anchored brushes contains the anchored radius */ float pixel_radius; + float initial_pixel_radius; + + char _pad[4]; /* drawing pressure */ float size_pressure_value; |