[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36641] branches/cycles/intern/cycles/util /util_transform.h: Cycles: fix mapping node rotation not working correct for Y/Z axes, patch by Sanne .
Brecht Van Lommel
brechtvanlommel at pandora.be
Thu May 12 13:34:16 CEST 2011
Revision: 36641
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36641
Author: blendix
Date: 2011-05-12 11:34:16 +0000 (Thu, 12 May 2011)
Log Message:
-----------
Cycles: fix mapping node rotation not working correct for Y/Z axes, patch by Sanne.
Modified Paths:
--------------
branches/cycles/intern/cycles/util/util_transform.h
Modified: branches/cycles/intern/cycles/util/util_transform.h
===================================================================
--- branches/cycles/intern/cycles/util/util_transform.h 2011-05-12 11:16:32 UTC (rev 36640)
+++ branches/cycles/intern/cycles/util/util_transform.h 2011-05-12 11:34:16 UTC (rev 36641)
@@ -173,8 +173,8 @@
{
return
transform_rotate(euler.x, make_float3(1.0f, 0.0f, 0.0f)) *
- transform_rotate(euler.y, make_float3(1.0f, 0.0f, 0.0f)) *
- transform_rotate(euler.z, make_float3(1.0f, 0.0f, 0.0f));
+ transform_rotate(euler.y, make_float3(0.0f, 1.0f, 0.0f)) *
+ transform_rotate(euler.z, make_float3(0.0f, 0.0f, 1.0f));
}
__device_inline Transform transform_orthographic(float znear, float zfar)
More information about the Bf-blender-cvs
mailing list