diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-12 14:33:42 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-01-01 17:42:25 +0300 |
commit | b0c55d5c944376e8d0ceba30c9a829ef1f38b4c2 (patch) | |
tree | fd10d35a1f292e981d982f350a01b83c179a1dde /source/blender/editors/object | |
parent | 759af7f1eed86d269d2cca5051443fa5c39b6c45 (diff) |
Fix T52573: Cycles baking artifacts
Synchronize condition for faces split between Cycles itself and baking API.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index f8ad5865887..d25730d7c10 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -625,7 +625,9 @@ static Mesh *bake_mesh_new_from_object(Main *bmain, Scene *scene, Object *ob) ED_object_editmode_load(ob); Mesh *me = BKE_mesh_new_from_object(bmain, scene, ob, 1, 2, 0, 0); - BKE_mesh_split_faces(me, true); + if (me->flag & ME_AUTOSMOOTH) { + BKE_mesh_split_faces(me, true); + } return me; } |