Browse Source

Merge pull request #772 from thechosenone124/patch-1

Intermediate Function Is Improperly Done #772
Christophe 7 years ago
parent
commit
56ed906320
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtx/quaternion.inl

+ 1 - 1
glm/gtx/quaternion.inl

@@ -45,7 +45,7 @@ namespace glm
 	)
 	{
 		tquat<T, Q> invQuat = inverse(curr);
-		return exp((log(next + invQuat) + log(prev + invQuat)) / static_cast<T>(-4)) * curr;
+		return exp((log(next * invQuat) + log(prev * invQuat)) / static_cast<T>(-4)) * curr;
 	}
 
 	template<typename T, qualifier Q>