[Bf-blender-cvs] [79f5b825a97] blender2.7: Fix T61502: Cycles wrong other object texture coordinates in OSL.
Brecht Van Lommel
noreply at git.blender.org
Wed Feb 13 15:03:24 CET 2019
Commit: 79f5b825a9779309a737bcbdfe3d68d760a80e62
Author: Brecht Van Lommel
Date: Wed Feb 13 15:01:54 2019 +0100
Branches: blender2.7
https://developer.blender.org/rB79f5b825a9779309a737bcbdfe3d68d760a80e62
Fix T61502: Cycles wrong other object texture coordinates in OSL.
The row/column major matrix conversion was done twice.
===================================================================
M intern/cycles/render/nodes.cpp
===================================================================
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 77a452674fb..d32b1513e42 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -3533,7 +3533,7 @@ void TextureCoordinateNode::compile(OSLCompiler& compiler)
if(compiler.output_type() == SHADER_TYPE_VOLUME)
compiler.parameter("is_volume", true);
compiler.parameter(this, "use_transform");
- Transform ob_itfm = transform_transposed_inverse(ob_tfm);
+ Transform ob_itfm = transform_inverse(ob_tfm);
compiler.parameter("object_itfm", ob_itfm);
compiler.parameter(this, "from_dupli");
More information about the Bf-blender-cvs
mailing list