From d48ce7da539188d78edbd11742c575df62cf458b Mon Sep 17 00:00:00 2001 From: pbruvoll Date: Fri, 25 Nov 2016 16:00:05 +0100 Subject: [PATCH] Update sign of all components of scale. Update all components of scale when determinant is negateve,, not just x component --- glm/gtx/matrix_decompose.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/matrix_decompose.inl b/glm/gtx/matrix_decompose.inl index 5bf576ac..7194e9d8 100644 --- a/glm/gtx/matrix_decompose.inl +++ b/glm/gtx/matrix_decompose.inl @@ -125,7 +125,7 @@ namespace detail { for(length_t i = 0; i < 3; i++) { - Scale.x *= static_cast(-1); + Scale[i] *= static_cast(-1); Row[i] *= static_cast(-1); } }