From 5faa1e354b18ce75fdd9c3c82c9ad07c141f5af3 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Mon, 27 Dec 2010 20:05:34 +0000 Subject: [PATCH] sculpt/multires fix --- source/blender/editors/sculpt_paint/sculpt.c | 2 +- source/blender/modifiers/intern/MOD_multires.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index b1fd32c7607..13dfabc69cb 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -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; } diff --git a/source/blender/modifiers/intern/MOD_multires.c b/source/blender/modifiers/intern/MOD_multires.c index 81490c9d7db..699ab44a75c 100644 --- a/source/blender/modifiers/intern/MOD_multires.c +++ b/source/blender/modifiers/intern/MOD_multires.c @@ -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;