diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-06 03:03:10 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-04-06 03:03:10 +0400 |
commit | cf3ec257a2b6913c41db93069b0ec7ce4dc6e2ad (patch) | |
tree | 78396adde54958c85e6203587353a84995e0d538 /intern/cycles | |
parent | bb81923c3e71619a6aaa47caa1b9ee834b8481c2 (diff) |
Fix #34880: cycles motion blur render issue with some compilers. Actually is a bigger
problem where accessing float4 members with [] stops working due to optimizer, will
check that later.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/util/util_transform.cpp | 2 | ||||
-rw-r--r-- | intern/cycles/util/util_transform.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/util/util_transform.cpp b/intern/cycles/util/util_transform.cpp index ca19146e125..f5e0c8e803e 100644 --- a/intern/cycles/util/util_transform.cpp +++ b/intern/cycles/util/util_transform.cpp @@ -155,7 +155,7 @@ Transform transform_inverse(const Transform& tfm) /* Motion Transform */ -static float4 transform_to_quat(const Transform& tfm) +float4 transform_to_quat(const Transform& tfm) { double trace = tfm[0][0] + tfm[1][1] + tfm[2][2]; float4 qt; diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index 1f19f85f894..617ba43a5ed 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -454,6 +454,7 @@ __device_inline bool operator==(const MotionTransform& A, const MotionTransform& return (A.pre == B.pre && A.post == B.post); } +float4 transform_to_quat(const Transform& tfm); void transform_motion_decompose(DecompMotionTransform *decomp, const MotionTransform *motion, const Transform *mid); #endif |