Browse Source

Update sign of all components of scale.

Update all components of scale when determinant is negateve,, not just x component
pbruvoll 9 years ago
parent
commit
d48ce7da53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtx/matrix_decompose.inl

+ 1 - 1
glm/gtx/matrix_decompose.inl

@@ -125,7 +125,7 @@ namespace detail
 		{
 			for(length_t i = 0; i < 3; i++)
 			{
-				Scale.x *= static_cast<T>(-1);
+				Scale[i] *= static_cast<T>(-1);
 				Row[i] *= static_cast<T>(-1);
 			}
 		}