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
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-06 03:03:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-04-06 03:03:10 +0400
commitcf3ec257a2b6913c41db93069b0ec7ce4dc6e2ad (patch)
tree78396adde54958c85e6203587353a84995e0d538 /intern
parentbb81923c3e71619a6aaa47caa1b9ee834b8481c2 (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')
-rw-r--r--intern/cycles/util/util_transform.cpp2
-rw-r--r--intern/cycles/util/util_transform.h1
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