Commit: 2b3ff61d805ccbb219e773e1a5c69e02b0c90109
Author: Campbell Barton
Date:   Tue Oct 3 17:36:55 2017 +1100
Branches: master
https://developer.blender.org/rB2b3ff61d805ccbb219e773e1a5c69e02b0c90109

Correct int division in last commit

===================================================================

M       source/blender/editors/sculpt_paint/paint_vertex_weight_utils.c

===================================================================

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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to