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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-04-28 17:47:27 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-04-28 17:47:27 +0400
commit774584d7e84843503a5ef4477748cecfdaedeb3d (patch)
tree574506474a87223ccfa709113f9048f626071fb1 /intern/cycles/util/util_transform.cpp
parentd263fee9521c2a53f7b673c9a8c57c072bf072c1 (diff)
Cycles: hook up the CMake build system.
New build instructions for Ubuntu Linux in the wiki: http://wiki.blender.org/index.php/Dev:2.5/Source/Cycles
Diffstat (limited to 'intern/cycles/util/util_transform.cpp')
-rw-r--r--intern/cycles/util/util_transform.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/intern/cycles/util/util_transform.cpp b/intern/cycles/util/util_transform.cpp
index 5c2f28af318..8c5eac2cbb9 100644
--- a/intern/cycles/util/util_transform.cpp
+++ b/intern/cycles/util/util_transform.cpp
@@ -129,13 +129,15 @@ static bool transform_matrix4_gj_inverse(float R[][4], float M[][4])
Transform transform_inverse(const Transform& tfm)
{
- Transform R = transform_identity();
- Transform M = tfm;
+ union { Transform T; float M[4][4]; } R, M;
+
+ R.T = transform_identity();
+ M.T = tfm;
- if(!transform_matrix4_gj_inverse((float(*)[4])&R, (float(*)[4])&M))
+ if(!transform_matrix4_gj_inverse(R.M, M.M))
return transform_identity();
- return R;
+ return R.T;
}
CCL_NAMESPACE_END