Fix #20362: multires conversion from 2.5alpha0 not working. It's still not
[blender.git] / source / blender / blenkernel / intern / multires.c
index 139a8d3267f8dc1fca8b0555103d5dcffee3d2ca..88c6788b7234c85c8c9c27b255613384dd1f025e 100644 (file)
@@ -784,6 +784,11 @@ static void old_mdisps_convert(MFace *mface, MDisps *mdisp)
                        for(x = 0; x < newside; ++x, ++out) {
                                old_mdisps_rotate(S, newside, oldside, x, y, &u, &v);
                                old_mdisps_bilinear(*out, mdisp->disps, oldside, u, v);
+
+                               if(S == 1) { (*out)[1]= -(*out)[1]; }
+                               else if(S == 2) { SWAP(float, (*out)[0], (*out)[1]); }
+                               else if(S == 3) { (*out)[0]= -(*out)[0]; }
+                               else if(S == 0) { SWAP(float, (*out)[0], (*out)[1]); (*out)[0]= -(*out)[0]; (*out)[1]= -(*out)[1]; };
                        }
                }
        }