Yuck, forgot to uncommit the ugly version of Mat3ToSize(). Caused scaling
authorTon Roosendaal <ton@blender.org>
Mon, 4 Apr 2005 14:21:09 +0000 (14:21 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 4 Apr 2005 14:21:09 +0000 (14:21 +0000)
to do very weird things on rotated objects.

source/blender/blenlib/intern/arithb.c

index d36f7923c587c8455df3f17f3f3e5ede98fb578f..b77590ebd186f1697a8fcfee7df967469459b762 100644 (file)
@@ -2268,13 +2268,10 @@ void Mat3ToSize( float mat[][3], float *size)
 
        VecCopyf(vec, mat[0]);
        size[0]= Normalise(vec);
-       if(vec[0]<0.0) size[0]= -size[0];
        VecCopyf(vec, mat[1]);
        size[1]= Normalise(vec);
-       if(vec[1]<0.0) size[1]= -size[1];
        VecCopyf(vec, mat[2]);
        size[2]= Normalise(vec);
-       if(vec[2]<0.0) size[2]= -size[2];
 
 }