From 84c582c1d7a64a213523b8e4c8211f8b7a4fdcd1 Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 26 May 2020 15:25:18 +0200 Subject: [PATCH] fixed horribly wrong matrix scaling --- src/base.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/base.cpp b/src/base.cpp index 646d202..c92ee28 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -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;