Browse Source

fix: slerpQuaternions doesn't return a value (#23114)

Nick 3 năm trước cách đây
mục cha
commit
1d1f44b038
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/math/Quaternion.js

+ 1 - 1
src/math/Quaternion.js

@@ -604,7 +604,7 @@ class Quaternion {
 
 
 	slerpQuaternions( qa, qb, t ) {
 	slerpQuaternions( qa, qb, t ) {
 
 
-		this.copy( qa ).slerp( qb, t );
+		return this.copy( qa ).slerp( qb, t );
 
 
 	}
 	}