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:
authorDalai Felinto <dfelinto@gmail.com>2014-05-08 22:05:12 +0400
committerDalai Felinto <dfelinto@gmail.com>2014-05-08 22:05:12 +0400
commit4c5fe540bf60181586d6bb500fcab3324b9be83a (patch)
tree1d67950255ed08db288051508e676374628a7b6b
parent672cebf19a8b7fe8f9ac0f732fd6e8a0df239c7f (diff)
ammend to [31cb7e39] Bake API: calculating differentials
-rw-r--r--source/blender/render/intern/source/bake_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c
index bb8278ca905..6bfe356082a 100644
--- a/source/blender/render/intern/source/bake_api.c
+++ b/source/blender/render/intern/source/bake_api.c
@@ -459,7 +459,7 @@ static void bake_differentials(BakeDataZSpan *bd, const float *uv1, const float
bd->dv_dy = (uv1[0] - uv3[0]) * A;
}
else {
- bd->du_dx = bd->dv_dx = 0.0f;
+ bd->du_dx = bd->du_dy = 0.0f;
bd->dv_dx = bd->dv_dy = 0.0f;
}
}