svn merge -r40279:40295 ^/trunk/blender
[blender-staging.git] / source / blender / blenkernel / intern / effect.c
index 7fb9f96e0cf592aa21fcc7caaed7df125449e65a..500d4ae13f7f6278be0778769b193e72b3edea0d 100644 (file)
@@ -597,7 +597,7 @@ int closest_point_on_surface(SurfaceModifierData *surmd, float *co, float *surfa
                }
 
                if(surface_vel) {
-                       MFace *mface = CDDM_get_face(surmd->dm, nearest.index);
+                       MFace *mface = CDDM_get_tessface(surmd->dm, nearest.index);
                        
                        copy_v3_v3(surface_vel, surmd->v[mface->v1].co);
                        add_v3_v3(surface_vel, surmd->v[mface->v2].co);