forked from bartvdbraak/blender
sculpt/multires fix
This commit is contained in:
parent
4aa6c3bf35
commit
5faa1e354b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user