Fix Weight Paint display with Subdivision Surface modifier.

The flag used to be set by the now removed old weight paint coloring code.
This commit is contained in:
Alexander Gavrilov 2018-10-09 14:21:23 +03:00
parent 0749808d51
commit f1959f0999
1 changed files with 4 additions and 0 deletions

View File

@ -2348,6 +2348,10 @@ static CustomDataMask object_get_datamask(const Depsgraph *depsgraph, Object *ob
mask |= CD_MASK_MLOOPCOL;
}
if (ob->mode & OB_MODE_WEIGHT_PAINT) {
mask |= CD_MASK_MDEFORMVERT;
}
if (ob->mode & OB_MODE_EDIT)
mask |= CD_MASK_MVERT_SKIN;
}