소스 검색

small bug fix in the new Matrix4.rotationAxisAngleMatrix

astrodud 14 년 전
부모
커밋
67be8c84a1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/core/Matrix4.js

+ 1 - 1
src/core/Matrix4.js

@@ -439,7 +439,7 @@ THREE.Matrix4.rotationAxisAngleMatrix = function ( axis, angle ) {
 
 	var m = new THREE.Matrix4();
 
-	setRotAxis( axis, angle );
+	m.setRotAxis( axis, angle );
 
 	return m;