Fix #35610: Multiresolution Modifier Complains About Sculpt Mode

If multires has got zero subdivisions in sculpt mode, no need
of displaying warning message. It was rather strange decision
which confused artists.

Now multires with zero subdivisions will be ignored silently
when in sculpt mode.
This commit is contained in:
Sergey Sharybin 2013-06-03 08:26:12 +00:00
parent 29871b29b5
commit 29d0c8cb19
1 changed files with 5 additions and 1 deletions

View File

@ -1609,13 +1609,17 @@ static void mesh_calc_modifiers(Scene *scene, Object *ob, float (*inputVertexCos
{
int unsupported = 0;
if (md->type == eModifierType_Multires && ((MultiresModifierData *)md)->sculptlvl == 0) {
/* If multires is on level 0 skip it silently without warning message. */
continue;
}
if (sculpt_dyntopo && !useRenderParams)
unsupported = TRUE;
if (scene->toolsettings->sculpt->flags & SCULPT_ONLY_DEFORM)
unsupported |= mti->type != eModifierTypeType_OnlyDeform;
unsupported |= md->type == eModifierType_Multires && ((MultiresModifierData *)md)->sculptlvl == 0;
unsupported |= multires_applied;
if (unsupported) {