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:
authorPablo Dobarro <pablodp606@gmail.com>2020-08-12 18:23:20 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-08-12 19:04:06 +0300
commitff4b5d00e4da54b1bcca232211fe17c8a8bf2c49 (patch)
tree235e049fbb176698eb747a2f5a2e2da2a890a9d8 /source/blender/editors/sculpt_paint/sculpt_paint_color.c
parent010911d7226894455023f0f1051a0d5fd2b8bb56 (diff)
Cleanup: Remove explicit float casts in sculpt code
Differential Revision: https://developer.blender.org/D8553
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_paint_color.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_paint_color.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_paint_color.c b/source/blender/editors/sculpt_paint/sculpt_paint_color.c
index ed33542967b..000b7afdf55 100644
--- a/source/blender/editors/sculpt_paint/sculpt_paint_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_paint_color.c
@@ -327,7 +327,7 @@ void SCULPT_do_paint_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode
if (swptd.tot_samples > 0 && is_finite_v4(swptd.color)) {
copy_v4_v4(wet_color, swptd.color);
- mul_v4_fl(wet_color, 1.0f / (float)swptd.tot_samples);
+ mul_v4_fl(wet_color, 1.0f / swptd.tot_samples);
CLAMP4(wet_color, 0.0f, 1.0f);
if (ss->cache->first_time) {