瀏覽代碼

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;