merge with 2.5 at r20783
[blender-staging.git] / source / blender / blenkernel / intern / shrinkwrap.c
index 8fb4ed8e272911cbf81b1794665c93057d07d28d..577156ef4538d9efbd492f882b61d913d9867009 100644 (file)
@@ -548,7 +548,7 @@ void shrinkwrapModifier_deform(ShrinkwrapModifierData *smd, Scene *scene, Object
 
        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);