Cleanup: only check paint mode for active objects

This commit is contained in:
Campbell Barton 2015-10-06 16:24:57 +11:00
parent 541d28f1a3
commit 51f00499cd
1 changed files with 1 additions and 1 deletions

View File

@ -2626,13 +2626,13 @@ static CustomDataMask object_get_datamask(const Scene *scene, Object *ob, bool *
{
Object *actob = scene->basact ? scene->basact->object : NULL;
CustomDataMask mask = ob->customdata_mask;
bool editing = BKE_paint_select_face_test(ob);
if (r_need_mapping) {
*r_need_mapping = false;
}
if (ob == actob) {
bool editing = BKE_paint_select_face_test(ob);
/* weight paint and face select need original indices because of selection buffer drawing */
if (r_need_mapping) {