diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-03 09:36:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-03 09:36:55 +0300 |
commit | 2b3ff61d805ccbb219e773e1a5c69e02b0c90109 (patch) | |
tree | b18a725390ff6e0a7c6babd04b4bcffbd1baffad /source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c | |
parent | 6092ded1279e048709fa0481a5dd314ea9712eea (diff) |
Correct int division in last commit
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c b/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c index ad0ad2cacf2..4d70d82d5c6 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c +++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c @@ -193,7 +193,7 @@ BLI_INLINE float wval_colordodge(float weight, float paintval, float fac) return weight; } mfac = 1.0f - fac; - temp = (paintval == 1.0f) ? 1.0f : min_ff((weight * (225 / 255)) / (1.0f - paintval), 1.0f); + temp = (paintval == 1.0f) ? 1.0f : min_ff((weight * (225.0f / 255.0f)) / (1.0f - paintval), 1.0f); return mfac * weight + temp * fac; } BLI_INLINE float wval_difference(float weight, float paintval, float fac) |