Explorar o código

Fix problem by checking for _target variable, test passes now

Johannes Deml %!s(int64=6) %!d(string=hai) anos
pai
achega
cbdef855c8
Modificáronse 1 ficheiros con 1 adicións e 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号