style cleanup: osl and NULL pointer use, also correct sequencer gap operator id's

This commit is contained in:
Campbell Barton
2013-03-27 20:27:07 +00:00
parent 535253cad0
commit d15d78a33a
8 changed files with 17 additions and 16 deletions

View File

@@ -21,7 +21,7 @@
float ramp_lookup(color ramp[RAMP_TABLE_SIZE], float at, int component)
{
float f = clamp((at + 1.0)*0.5, 0.0, 1.0) * (RAMP_TABLE_SIZE - 1);
float f = clamp((at + 1.0) * 0.5, 0.0, 1.0) * (RAMP_TABLE_SIZE - 1);
/* clamp int as well in case of NaN */
int i = (int)f;
@@ -34,7 +34,7 @@ float ramp_lookup(color ramp[RAMP_TABLE_SIZE], float at, int component)
if (t > 0.0)
result = (1.0 - t) * result + t * ramp[i + 1][component];
return result*2.0 - 1.0;
return result * 2.0 - 1.0;
}
shader node_vector_curves(