Explorar el Código

small bug fix in the new Matrix4.rotationAxisAngleMatrix

astrodud hace 14 años
padre
commit
67be8c84a1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;