Commit: 58ffd8beb3342a73422a5c0a24a04f3fbe299806 Author: Lukas Tönne Date: Wed Feb 18 11:49:04 2015 +0100 Branches: gooseberry https://developer.blender.org/rB58ffd8beb3342a73422a5c0a24a04f3fbe299806
Always make sure the surface modifier has tessfaces available for building the BVH. A long long time ago (rB3816554cbc1a40dc5199c8e56e45817ec09128d5) it was coded such that edges would be used instead of faces for surface distance calculation. This is pretty much never what you actually want. =================================================================== M source/blender/modifiers/intern/MOD_surface.c =================================================================== diff --git a/source/blender/modifiers/intern/MOD_surface.c b/source/blender/modifiers/intern/MOD_surface.c index 1c462f1..36a1759 100644 --- a/source/blender/modifiers/intern/MOD_surface.c +++ b/source/blender/modifiers/intern/MOD_surface.c @@ -111,6 +111,7 @@ static void deformVerts(ModifierData *md, Object *ob, float *vec; MVert *x, *v; + DM_ensure_tessface(surmd->dm); CDDM_apply_vert_coords(surmd->dm, vertexCos); CDDM_calc_normals(surmd->dm); _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs