Explorar o código

small bug fix in the new Matrix4.rotationAxisAngleMatrix

astrodud %!s(int64=14) %!d(string=hai) anos
pai
achega
67be8c84a1
Modificáronse 1 ficheiros con 1 adicións e 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;