Fix T41044 Cycles Bake: world space location affects object space normal pass

This commit is contained in:
Dalai Felinto 2014-07-14 17:49:30 -03:00
parent 48eececdba
commit 50d30148b6
Notes: blender-bot 2023-02-14 10:21:16 +01:00
Referenced by issue #41079, Solid black render of object with negative scale and smooth shading
Referenced by issue #41044, Cycles Bake: world space location affects object space normal pass
1 changed files with 2 additions and 1 deletions

View File

@ -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 */