merge with trunk at r31523
[blender.git] / source / blender / blenkernel / intern / effect.c
index 6f6d405dd90bf51558ea53accae5e1bbc00d29f8..fba96d2fd8f3b89c0aa2a562c2f1ff8520d6b44c 100644 (file)
@@ -572,7 +572,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);
                        
                        VECCOPY(surface_vel, surmd->v[mface->v1].co);
                        add_v3_v3(surface_vel, surmd->v[mface->v2].co);