fix relating to r56260, when in vertex paint mode the mesh would have tessfaces allocated, which prevented baking from updating vertex colors.
baking now clears tessfaces.
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
#include "DNA_meshdata_types.h"
|
||||
|
||||
#include "BKE_customdata.h"
|
||||
#include "BKE_depsgraph.h"
|
||||
#include "BKE_global.h"
|
||||
#include "BKE_image.h"
|
||||
#include "BKE_main.h"
|
||||
@@ -1105,19 +1104,6 @@ int RE_bake_shade_all_selected(Render *re, int type, Object *actob, short *do_up
|
||||
}
|
||||
}
|
||||
|
||||
if (R.r.bake_flag & R_BAKE_VCOL) {
|
||||
/* update all tagged meshes */
|
||||
Object *ob;
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MEM_freeN(handles);
|
||||
|
||||
BLI_end_threads(&threads);
|
||||
|
||||
Reference in New Issue
Block a user