Fix T45606: cycles multires tangent space normal map bake issues.

This commit is contained in:
2016-02-14 01:54:09 +01:00
parent f6f851d28a
commit 3143ec29d0
2 changed files with 21 additions and 1 deletions

View File

@@ -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;
}