Browse Source

Added missing minus sign.

Marcel Jackwerth 14 years ago
parent
commit
b6e6624a1d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/Quaternion.js

+ 1 - 1
src/core/Quaternion.js

@@ -212,7 +212,7 @@ THREE.Quaternion.slerp = function ( qa, qb, qm, t ) {
 	var cosHalfTheta = qa.w * qb.w + qa.x * qb.x + qa.y * qb.y + qa.z * qb.z;
 
 	if (cosHalfTheta < 0) {
-		qm.w = -qb.w; qm.x = -qb.x; qm.y = -qb.y; qm.z = qb.z;
+		qm.w = -qb.w; qm.x = -qb.x; qm.y = -qb.y; qm.z = -qb.z;
 		cosHalfTheta = -cosHalfTheta;
 	} else {
 		qm.copy(qb);