sculpt/multires fix

This commit is contained in:
Joseph Eagar 2010-12-27 20:05:34 +00:00
parent 4aa6c3bf35
commit 5faa1e354b
2 changed files with 2 additions and 2 deletions

@ -104,7 +104,7 @@ struct MultiresModifierData *sculpt_multires_active(Scene *scene, Object *ob)
Mesh *me= (Mesh*)ob->data;
ModifierData *md, *nmd;
if(!CustomData_get_layer(&me->fdata, CD_MDISPS)) {
if(!CustomData_get_layer(&me->ldata, CD_MDISPS)) {
/* multires can't work without displacement layer */
return NULL;
}

@ -71,7 +71,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *dm,
Mesh *me= (Mesh*)ob->data;
if(mmd->totlvl) {
if(!CustomData_get_layer(&me->pdata, CD_MDISPS)) {
if(!CustomData_get_layer(&me->ldata, CD_MDISPS)) {
/* multires can't work without displacement layer */
modifier_setError(md, "Modifier needs mesh with displacement data.");
return dm;