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
path: root/source
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2014-07-15 00:49:30 +0400
committerDalai Felinto <dfelinto@gmail.com>2014-07-15 00:49:30 +0400
commit50d30148b63212d4249b6e2aa97a5802557a9b6e (patch)
treecdabc2f9e6f4cb0a4c1506557aa56d9a35f13c48 /source
parent48eececdba17af7d85fc19480be0e34e38362e66 (diff)
Fix T41044 Cycles Bake: world space location affects object space normal pass
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/bake_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c
index efa8c9b98f4..15ad6051f4c 100644
--- a/source/blender/render/intern/source/bake_api.c
+++ b/source/blender/render/intern/source/bake_api.c
@@ -852,7 +852,8 @@ void RE_bake_normal_world_to_object(
offset = i * depth;
normal_uncompress(nor, &result[offset]);
- mul_m4_v3(iobmat, nor);
+ /* rotates only without translation */
+ mul_mat3_m4_v3(iobmat, nor);
normalize_v3(nor);
/* save back the values */