Fix regression from 2.70:

Multires did not support hiding in zero level. It's a case of PBVH not
being used in drawing due to code reporting active modifiers being used.

However multires level zero can be treated as effectively no modifier
and we can use mesh PBVH.
This commit is contained in:
Antonis Ryakiotakis 2014-05-08 17:58:55 +03:00
parent 19bddbfc54
commit bbf6db0c0c
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ static bool sculpt_modifiers_active(Scene *scene, Sculpt *sd, Object *ob)
for (; md; md = md->next) {
ModifierTypeInfo *mti = modifierType_getInfo(md->type);
if (!modifier_isEnabled(scene, md, eModifierMode_Realtime)) continue;
if (md->type == eModifierType_ShapeKey) continue;
if (ELEM(md->type, eModifierType_ShapeKey, eModifierType_Multires)) continue;
if (mti->type == eModifierTypeType_OnlyDeform) return 1;
else if ((sd->flags & SCULPT_ONLY_DEFORM) == 0) return 1;