mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix of last commit. Clamp values that will be used!
This commit is contained in:
parent
d23459f516
commit
178708f142
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue