@@ -358,7 +358,7 @@ THREE.TrackballControls = function ( object, domElement ) {
_this.object.lookAt( _this.target );
- if ( lastPosition.distanceToSquared( _this.object.position ) > EPS || lastZoom !== _this.object.zoom ) {
+ if ( lastPosition.distanceToSquared( _this.object.position ) > EPS || lastZoom !== _this.object.zoom ) {
_this.dispatchEvent( changeEvent );
@@ -157,14 +157,12 @@ THREE.Projector = function () {
var uvs = [];
var object = null;
- var material = null;
var normalMatrix = new THREE.Matrix3();
function setObject( value ) {
object = value;
- material = object.material;
normalMatrix.getNormalMatrix( object.matrixWorld );
@@ -366,7 +366,7 @@ var TrackballControls = function ( object, domElement ) {
@@ -181,14 +181,12 @@ var Projector = function () {
var normalMatrix = new Matrix3();