Shrinkwrap fix (before I only fixed normal projection)
nearest surface + nearest vertex fixed now
This commit is contained in:
parent
7a042dcc3a
commit
310356a732
@ -191,7 +191,7 @@ void shrinkwrapModifier_deform(ShrinkwrapModifierData *smd, Object *ob, DerivedM
|
||||
|
||||
calc.vgroup = get_named_vertexgroup_num(calc.ob, smd->vgroup_name);
|
||||
|
||||
if(dm != NULL)
|
||||
if(dm != NULL && smd->shrinkType == MOD_SHRINKWRAP_PROJECT)
|
||||
{
|
||||
//Setup arrays to get vertexs positions, normals and deform weights
|
||||
calc.vert = dm->getVertDataArray(dm, CD_MVERT);
|
||||
|
Loading…
Reference in New Issue
Block a user