Fix missing autosmooth in Cycles after copy-on-write changes.

This commit is contained in:
Sergey Sharybin 2018-05-23 13:24:39 +02:00 committed by Brecht Van Lommel
parent b20449cc08
commit 07dee0f79c
1 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,9 @@ void BKE_object_eval_uber_data(Depsgraph *depsgraph,
* evaluated mesh.
*/
new_mesh->id.orig_id = &mesh->id;
/* Copy autosmooth settings from original mesh. */
new_mesh->flag |= (mesh->flag & ME_AUTOSMOOTH);
new_mesh->smoothresh = mesh->smoothresh;
}
#if 0
if (ob->derivedFinal != NULL) {