Sculpt: Make subdivision surface modifier use the On Cage option

This commit is contained in:
Pablo Dobarro 2021-06-04 16:20:38 +02:00
parent b1e59f1a20
commit d4af8a8d26
1 changed files with 4 additions and 1 deletions

View File

@ -351,7 +351,10 @@ static void crazyspace_init_verts_and_matrices(const Mesh *mesh,
static bool crazyspace_modifier_supports_deform_matrices(ModifierData *md)
{
if (ELEM(md->type, eModifierType_Subsurf, eModifierType_Multires)) {
if (md->type == eModifierType_Multires) {
return true;
}
if (md->type == eModifierType_Subsurf && md->mode & eModifierMode_OnCage) {
return true;
}
const ModifierTypeInfo *mti = BKE_modifier_get_info(md->type);