ammend to [31cb7e39] Bake API: calculating differentials

This commit is contained in:
Dalai Felinto 2014-05-08 15:05:12 -03:00
parent 672cebf19a
commit 4c5fe540bf
Notes: blender-bot 2023-02-14 10:41:16 +01:00
Referenced by issue #40101, Can't bake combine, shadows, to active
1 changed files with 1 additions and 1 deletions

View File

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