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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-14 03:54:09 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-02-14 05:51:41 +0300
commit3143ec29d0577948f2f7750c47a6a84ab33f39d7 (patch)
tree6d390d218b0bd0c5725421d27c7d6369a141007a /source/blender/render
parentf6f851d28ae35deb98604f9d62369a69a3988b3b (diff)
Fix T45606: cycles multires tangent space normal map bake issues.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/bake_api.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c
index bac8df4e0b1..21460c701e6 100644
--- a/source/blender/render/intern/source/bake_api.c
+++ b/source/blender/render/intern/source/bake_api.c
@@ -792,7 +792,10 @@ void RE_bake_normal_world_to_tangent(
offset = i * depth;
if (primitive_id == -1) {
- copy_v3_fl3(&result[offset], 0.5f, 0.5f, 1.0f);
+ if (depth == 4)
+ copy_v4_fl4(&result[offset], 0.5f, 0.5f, 1.0f, 1.0f);
+ else
+ copy_v3_fl3(&result[offset], 0.5f, 0.5f, 1.0f);
continue;
}