Преглед изворни кода

Fix problem by checking for _target variable, test passes now

Johannes Deml пре 6 година
родитељ
комит
cbdef855c8
1 измењених фајлова са 1 додато и 1 уклоњено
  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号