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
path: root/source
diff options
context:
space:
mode:
authorGermano Cavalcante <germano.costa@ig.com.br>2017-03-24 10:13:16 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2017-03-24 10:13:16 +0300
commit178708f1426dbde1d1fda33da47a76fab18e0bc8 (patch)
tree7d3c274e6927a05b779fa7bb4d156de16a306926 /source
parentd23459f5164092fb59cd952da6ddd8c0d23170d4 (diff)
Fix of last commit. Clamp values that will be used!
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/customdata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index aca332f4bf5..debc7491fb8 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -839,10 +839,10 @@ static void layerInterp_mloopcol(
/* Subdivide smooth or fractal can cause problems without clamping
* although weights should also not cause this situation */
- CLAMP(col.a, 0.0f, 255.0f);
- CLAMP(col.r, 0.0f, 255.0f);
- CLAMP(col.g, 0.0f, 255.0f);
- CLAMP(col.b, 0.0f, 255.0f);
+ CLAMP(mc->a, 0, 255);
+ CLAMP(mc->r, 0, 255);
+ CLAMP(mc->g, 0, 255);
+ CLAMP(mc->b, 0, 255);
}
static int layerMaxNum_mloopcol(void)