mirror of https://github.com/aap/librw.git
fixed horribly wrong matrix scaling
This commit is contained in:
parent
3971dda001
commit
84c582c1d7
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue