diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-12 14:33:42 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-12 14:33:42 +0300 |
commit | fadc0797403070adb517ebe0f02801470334c9ab (patch) | |
tree | 1805aaee8a6dd386ffe9aa2d08ac87951e0f37cc /source | |
parent | e7b5bbae6a1594f6e21a5734cdc7e6e4e2e43eb6 (diff) |
Fix T52573: Cycles baking artifacts
Synchronize condition for faces split between Cycles itself and baking API.
Diffstat (limited to 'source')
-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; } |