Skip to content
Snippets Groups Projects
Commit f239d2e7 authored by Campbell Barton's avatar Campbell Barton
Browse files

minor adjustment to vertex color baking, tag the meshes directly, no need to do via the objects.

parent 838a601a
Branches
Tags
No related merge requests found
......@@ -648,18 +648,15 @@ static void finish_bake_internal(BakeRender *bkr)
if (bkr->scene->r.bake_flag & R_BAKE_VCOL) {
/* update all tagged meshes */
Object *ob;
Mesh *me;
BLI_assert(BLI_thread_is_main());
for (ob = G.main->object.first; ob; ob = ob->id.next) {
if (ob->type == OB_MESH) {
Mesh *me = ob->data;
for (me = G.main->mesh.first; me; me = me->id.next) {
if (me->id.flag & LIB_DOIT) {
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA);
DAG_id_tag_update(&me->id, OB_RECALC_DATA);
BKE_mesh_tessface_clear(me);
}
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment