Fixed stupid typo with detecting corners of source mdisp.
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 22 Dec 2010 21:38:06 +0000 (21:38 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 22 Dec 2010 21:38:06 +0000 (21:38 +0000)
Haven't noticed before because destination is a copy of source for now,
so there would be always the same count of corners.

source/blender/blenkernel/intern/customdata.c

index abd78ffe148118cdc27b2d45cc4530613c25f00a..e178beaaa503fa682a2b4d1899abc9928f79f581 100644 (file)
@@ -692,7 +692,7 @@ static void layerInterp_mdisps(void **sources, float *UNUSED(weights),
 
        s = sources[0];
        dst_corners = multires_mdisp_corners(d);
-       src_corners = multires_mdisp_corners(d);
+       src_corners = multires_mdisp_corners(s);
 
        /* XXX: For now, some restrictions on the input
                should be implemented to allow quad<->tris face conversion */