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:
authorCampbell Barton <ideasman42@gmail.com>2017-10-03 09:36:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-03 09:36:55 +0300
commit2b3ff61d805ccbb219e773e1a5c69e02b0c90109 (patch)
treeb18a725390ff6e0a7c6babd04b4bcffbd1baffad /source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c
parent6092ded1279e048709fa0481a5dd314ea9712eea (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.c2
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)