diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-27 15:43:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-27 15:46:15 +0300 |
commit | e1ed47eb5b6ec3f1501bed0b34bfa7894acee022 (patch) | |
tree | ba514f3a9df200af40042faf5e1c833611d51e9a /source/blender/editors/object | |
parent | 9dadc8f599da94c3120f24f198c606d011a5dda2 (diff) |
Fix T44512: Cycles fails normal bake /w scale flip
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index 578335a385b..b382fbafcfd 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -775,11 +775,7 @@ static int bake( copy_m4_m4(highpoly[i].obmat, highpoly[i].ob->obmat); invert_m4_m4(highpoly[i].imat, highpoly[i].obmat); - /* rotation */ - normalize_m4_m4(highpoly[i].rotmat, highpoly[i].imat); - zero_v3(highpoly[i].rotmat[3]); - if (is_negative_m4(highpoly[i].rotmat)) - negate_mat3_m4(highpoly[i].rotmat); + highpoly[i].is_flip_object = is_negative_m4(highpoly[i].ob->obmat); i++; } |