[Bf-blender-cvs] [178708f142] master: Fix of last commit. Clamp values that will be used!
Germano Cavalcante
noreply at git.blender.org
Fri Mar 24 08:13:28 CET 2017
Commit: 178708f1426dbde1d1fda33da47a76fab18e0bc8
Author: Germano Cavalcante
Date: Fri Mar 24 04:13:16 2017 -0300
Branches: master
https://developer.blender.org/rB178708f1426dbde1d1fda33da47a76fab18e0bc8
Fix of last commit. Clamp values that will be used!
===================================================================
M source/blender/blenkernel/intern/customdata.c
===================================================================
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index aca332f4bf..debc7491fb 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)
More information about the Bf-blender-cvs
mailing list