Przeglądaj źródła

small bug fix in the new Matrix4.rotationAxisAngleMatrix

astrodud 14 lat temu
rodzic
commit
67be8c84a1
1 zmienionych plików z 1 dodań i 1 usunięć
  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;