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.
This commit is contained in:
Brecht Van Lommel 2013-04-05 23:03:10 +00:00
parent bb81923c3e
commit cf3ec257a2
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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