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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-01 11:36:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-01 11:36:57 +0300
commit40f45a7eac620fd8b99b3f29f3d0cac3c855dc84 (patch)
treeb42ed461143b7347d86cefe40d051d0585f460e8 /source/blender/render
parent0f5b53ba4dc03f89b43a633f73a59594e709ab11 (diff)
Cleanup: redundant NULL checks
Also use unsigned shifting for values not in int range.
Diffstat (limited to 'source/blender/render')
-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 181d3744ad7..c906413d7d7 100644
--- a/source/blender/render/intern/source/bake_api.c
+++ b/source/blender/render/intern/source/bake_api.c
@@ -432,7 +432,7 @@ static TriTessFace *mesh_calc_tri_tessface(
me->totloop, me->totpoly,
looptri);
- const float *precomputed_normals = me ? CustomData_get_layer(&me->pdata, CD_NORMAL) : NULL;
+ const float *precomputed_normals = CustomData_get_layer(&me->pdata, CD_NORMAL);
const bool calculate_normal = precomputed_normals ? false : true;
for (i = 0; i < tottri; i++) {