Browse Source

Update quaternion.inl

CaptainCarrot 8 years ago
parent
commit
3669256fd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      glm/gtx/quaternion.inl

+ 2 - 2
glm/gtx/quaternion.inl

@@ -230,7 +230,7 @@ namespace glm
 	{
 		mat<3, 3, T, Q> Result;
 
-		Result[2] = -normalize(direction);
+		Result[2] = -direction;
 		Result[0] = normalize(cross(up, Result[2]));
 		Result[1] = cross(Result[2], Result[0]);
 
@@ -242,7 +242,7 @@ namespace glm
 	{
 		mat<3, 3, T, Q> Result;
 
-		Result[2] = normalize(direction);
+		Result[2] = direction;
 		Result[0] = normalize(cross(up, Result[2]));
 		Result[1] = cross(Result[2], Result[0]);