Fix T43324: Shrinkwrap projection issue in editmode.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 30 Jan 2015 11:48:49 +0000 (12:48 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 30 Jan 2015 11:50:38 +0000 (12:50 +0100)
Nice stupid error in low-level `get_cddm` helper, was probably affecting other
modifiers too actualy!

source/blender/modifiers/intern/MOD_util.c

index 62a7ddefdf312d33a7bcc477b641bcfe15f744be..fe83166c09f74590ea0ebc9b7c8c6dda24dc0909 100644 (file)
@@ -159,8 +159,8 @@ DerivedMesh *get_cddm(Object *ob, struct BMEditMesh *em, DerivedMesh *dm, float
        if (dm) {
                if (dm->type != DM_TYPE_CDDM) {
                        dm = CDDM_copy(dm);
-                       CDDM_apply_vert_coords(dm, vertexCos);
                }
+               CDDM_apply_vert_coords(dm, vertexCos);
 
                if (use_normals) {
                        DM_ensure_normals(dm);