diff options
author | Thomas Dinges <blender@dingto.org> | 2013-05-18 15:04:29 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-05-18 15:04:29 +0400 |
commit | 75e36650e35d556fa9959ac0c9e1831a070fb2ef (patch) | |
tree | abaebe762b1589d2570cb25a63deca8541e7bc72 /intern/cycles/util/util_transform.h | |
parent | f314ff02bda2ad959b6dc374d090047d270cd885 (diff) |
Code cleanup / Cycles:
* Simplify shaperadius() function a bit to avoid castings.
* Style cleanup 1.f -> 1.0f, to follow rest of Cycles code.
Diffstat (limited to 'intern/cycles/util/util_transform.h')
-rw-r--r-- | intern/cycles/util/util_transform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index 33761827dd7..66801e90b56 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -195,7 +195,7 @@ __device_inline Transform transform_rotate(float angle, float3 axis) { float s = sinf(angle); float c = cosf(angle); - float t = 1.f - c; + float t = 1.0f - c; axis = normalize(axis); |