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

This commit is contained in:
Campbell Barton 2013-04-29 00:49:44 +00:00
parent 838a601a71
commit f239d2e751
2 changed files with 7 additions and 10 deletions

View File

@ -420,8 +420,8 @@ if(NOT WITH_BOOST)
macro(set_and_warn
_setting _val)
if(${${_setting}})
message(STATUS "'WITH_BOOST' is disabled: forceing 'set(${_setting} ${_val})'")
endif()
message(STATUS "'WITH_BOOST' is disabled: forceing 'set(${_setting} ${_val})'")
endif()
set(${_setting} ${_val})
endmacro()

View File

@ -648,15 +648,12 @@ 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;
if (me->id.flag & LIB_DOIT) {
DAG_id_tag_update(&ob->id, OB_RECALC_OB | OB_RECALC_DATA);
BKE_mesh_tessface_clear(me);
}
for (me = G.main->mesh.first; me; me = me->id.next) {
if (me->id.flag & LIB_DOIT) {
DAG_id_tag_update(&me->id, OB_RECALC_DATA);
BKE_mesh_tessface_clear(me);
}
}
}