Explorar el Código

Fix problem by checking for _target variable, test passes now

Johannes Deml hace 6 años
padre
commit
cbdef855c8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/Object3D.js

+ 1 - 1
src/core/Object3D.js

@@ -277,7 +277,7 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 
 		// This method does not support objects having non-uniformly-scaled parent(s)
 
-		if ( _position === undefined ) {
+		if ( _target === undefined ) {
 
 			_q1 = new Quaternion();
 			_m1 = new Matrix4();

粤ICP备19079148号