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
This commit is contained in:
Brecht Van Lommel
2011-04-28 13:47:27 +00:00
parent d263fee952
commit 774584d7e8
19 changed files with 168 additions and 167 deletions

View File

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