diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2014-07-15 00:49:30 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2014-07-15 00:49:30 +0400 |
commit | 50d30148b63212d4249b6e2aa97a5802557a9b6e (patch) | |
tree | cdabc2f9e6f4cb0a4c1506557aa56d9a35f13c48 | |
parent | 48eececdba17af7d85fc19480be0e34e38362e66 (diff) |
Fix T41044 Cycles Bake: world space location affects object space normal pass
-rw-r--r-- | source/blender/render/intern/source/bake_api.c | 3 |
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 */ |