minor adjustment to vertex color baking, tag the meshes directly, no need to do via the objects.
This commit is contained in:
parent
838a601a71
commit
f239d2e751
|
@ -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()
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue