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
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-05-18 15:04:29 +0400
committerThomas Dinges <blender@dingto.org>2013-05-18 15:04:29 +0400
commit75e36650e35d556fa9959ac0c9e1831a070fb2ef (patch)
treeabaebe762b1589d2570cb25a63deca8541e7bc72 /intern/cycles/util
parentf314ff02bda2ad959b6dc374d090047d270cd885 (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')
-rw-r--r--intern/cycles/util/util_transform.h2
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);