Depsgraph: Fix missing UV layers with copy on write enabled

This commit is contained in:
2017-07-20 14:29:13 +02:00
parent 00ddbd5848
commit b7d0cfaa60

View File

@@ -361,7 +361,7 @@ void BKE_object_eval_uber_data(EvaluationContext *eval_ctx,
/* Copy materials so render engines can access them. */
new_mesh->mat = MEM_dupallocN(mesh->mat);
new_mesh->totcol = mesh->totcol;
DM_to_mesh(dm, new_mesh, ob, ob->lastDataMask, true);
DM_to_mesh(dm, new_mesh, ob, CD_MASK_MESH, true);
new_mesh->edit_btmesh = mesh->edit_btmesh;
/* Store result mesh as derived_mesh of object. This way we have
* explicit way to query final object evaluated data and know for sure