fixed horribly wrong matrix scaling

This commit is contained in:
aap 2020-05-26 15:25:18 +02:00
parent 3971dda001
commit 84c582c1d7

View File

@ -398,8 +398,9 @@ Matrix::scale(const V3d *scale, CombineOp op)
Matrix tmp; Matrix tmp;
Matrix scl = identMat; Matrix scl = identMat;
scl.right.x = scale->x; scl.right.x = scale->x;
scl.right.y = scale->y; scl.up.y = scale->y;
scl.right.z = scale->z; scl.at.z = scale->z;
scl.flags &= ~IDENTITY;
switch(op){ switch(op){
case COMBINEREPLACE: case COMBINEREPLACE:
*this = scl; *this = scl;