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-12 18:13:29 +0400
committerThomas Dinges <blender@dingto.org>2013-05-12 18:13:29 +0400
commit7636aeffe1674ea2281869a0d81cbe20ee42e8b9 (patch)
tree61ab2f2c9bd74ff35d074e4f27a0885b6ac98a32 /intern/cycles/subd
parent469979f9cb08640fbc00a43b59eee459460e74e1 (diff)
Cycles / Math:
* Add M_2PI_F and M_4PI_F constants and use them inside the codebase.
Diffstat (limited to 'intern/cycles/subd')
-rw-r--r--intern/cycles/subd/subd_build.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/subd/subd_build.cpp b/intern/cycles/subd/subd_build.cpp
index 8e84da7f019..f3c2837c37c 100644
--- a/intern/cycles/subd/subd_build.cpp
+++ b/intern/cycles/subd/subd_build.cpp
@@ -413,10 +413,10 @@ void SubdAccBuilder::computeInteriorStencil(SubdFaceRing *ring, GregoryAccStenci
}
else {
SubdVert *e0 = edge->from();
- float costerm0 = cosf(2.0f * M_PI_F / pseudoValence(e0));
+ float costerm0 = cosf(M_2PI_F / pseudoValence(e0));
SubdVert *f0 = edge->to();
- float costerm1 = cosf(2.0f * M_PI_F / pseudoValence(f0));
+ float costerm1 = cosf(M_2PI_F / pseudoValence(f0));
/* p0 +------+ q0
* | |