Mr.doob преди 12 години
родител
ревизия
1983a69e0f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/objects/Sprite.js

+ 1 - 1
src/objects/Sprite.js

@@ -23,7 +23,7 @@ THREE.Sprite.prototype = Object.create( THREE.Object3D.prototype );
 THREE.Sprite.prototype.updateMatrix = function () {
 
 	this.rotation3d.set( 0, 0, this.rotation );
-	this.quaterion.setFromEuler( this.rotation3d, this.eulerOrder );
+	this.quaternion.setFromEuler( this.rotation3d, this.eulerOrder );
 	this.matrix.makeFromPositionQuaternionScale( this.position, this.quaternion, this.scale );
 
 	this.matrixWorldNeedsUpdate = true;