From 14152a3a4cc20f1ad9c2948dfe22af44a0631fee Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Mon, 23 Sep 2013 13:29:38 -0700 Subject: [PATCH] Sprite: Removed unused code. --- src/objects/Sprite.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/objects/Sprite.js b/src/objects/Sprite.js index 6fad6bd5a8..e250f300ee 100644 --- a/src/objects/Sprite.js +++ b/src/objects/Sprite.js @@ -9,7 +9,6 @@ THREE.Sprite = function ( material ) { this.material = ( material !== undefined ) ? material : new THREE.SpriteMaterial(); - this.rotation3d = this.rotation; this.rotation = 0; }; @@ -22,9 +21,6 @@ THREE.Sprite.prototype = Object.create( THREE.Object3D.prototype ); THREE.Sprite.prototype.updateMatrix = function () { -// this.rotation3d.set( 0, 0, this.rotation, this.rotation3d.order ); // not needed. sprite is rotated in the vertex shader. -// this.quaternion.setFromEuler( this.rotation3d ); // ...sprite.rotation3d remains zero. - this.matrix.compose( this.position, this.quaternion, this.scale ); this.matrixWorldNeedsUpdate = true; -- GitLab