Depsgraph: Fix missing UV layers with copy on write enabled
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 20 Jul 2017 12:29:13 +0000 (14:29 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 20 Jul 2017 12:29:13 +0000 (14:29 +0200)
source/blender/blenkernel/intern/object_update.c

index 50502115edc319f507d973f3627ecbca5bb516a6..4684deb1238821bcaefbb66485345484412ff692 100644 (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