diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-18 16:51:17 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-18 16:58:30 +0300 |
commit | c8e3fe608e7ab02ef0ae2a4f57dab85e3c1d5eba (patch) | |
tree | e5695bcdafece1e2814b42f07ba628afb62a5e96 /source/blender/editors/object/object_bake_api.c | |
parent | 4337bc2e6303dbd5f295878f3e7490995a62713a (diff) |
Fix T61912, T63297: error baking tangent space normal map with autosmooth
Diffstat (limited to 'source/blender/editors/object/object_bake_api.c')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index 2f5a4b44412..6164958bf2c 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -1221,7 +1221,7 @@ cleanup: if (highpoly) { int i; for (i = 0; i < tot_highpoly; i++) { - if (highpoly[i].me) { + if (highpoly[i].ob_eval) { BKE_object_to_mesh_clear(highpoly[i].ob_eval); } } @@ -1252,11 +1252,11 @@ cleanup: MEM_freeN(result); } - if (me_low) { + if (ob_low_eval) { BKE_object_to_mesh_clear(ob_low_eval); } - if (me_cage) { + if (ob_cage_eval) { BKE_object_to_mesh_clear(ob_cage_eval); } |