Skip to content

Commit

Permalink
fixed horribly wrong matrix scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed May 26, 2020
1 parent 3971dda commit 84c582c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,9 @@ Matrix::scale(const V3d *scale, CombineOp op)
Matrix tmp;
Matrix scl = identMat;
scl.right.x = scale->x;
scl.right.y = scale->y;
scl.right.z = scale->z;
scl.up.y = scale->y;
scl.at.z = scale->z;
scl.flags &= ~IDENTITY;
switch(op){
case COMBINEREPLACE:
*this = scl;
Expand Down

0 comments on commit 84c582c

Please sign in to comment.