2
0
Mr.doob 13 жил өмнө
parent
commit
5b167b51fd

+ 8 - 5
src/extras/controls/TrackballControls.js

@@ -282,7 +282,7 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 		}
 
-	};
+	}
 
 	function keyup( event ) {
 
@@ -294,7 +294,7 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 		}
 
-	};
+	}
 
 	function mousedown( event ) {
 
@@ -323,7 +323,7 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 		}
 
-	};
+	}
 
 	function mousemove( event ) {
 
@@ -357,7 +357,7 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 		}
 
-	};
+	}
 
 	function mouseup( event ) {
 
@@ -368,7 +368,7 @@ THREE.TrackballControls = function ( object, domElement ) {
 
 		_state = STATE.NONE;
 
-	};
+	}
 
 	this.domElement.addEventListener( 'contextmenu', function ( event ) { event.preventDefault(); }, false );
 
@@ -376,6 +376,9 @@ THREE.TrackballControls = function ( object, domElement ) {
 	this.domElement.addEventListener( 'mousedown', mousedown, false );
 	this.domElement.addEventListener( 'mouseup', mouseup, false );
 
+	// this.domElement.addEventListener( 'DOMMouseScroll', mousewheel, false );
+	// this.domElement.addEventListener( 'mousewheel', mousewheel, false );
+
 	window.addEventListener( 'keydown', keydown, false );
 	window.addEventListener( 'keyup', keyup, false );
 

+ 0 - 1
src/extras/objects/LensFlare.js

@@ -22,7 +22,6 @@ THREE.LensFlare = function ( texture, size, distance, blending, color ) {
 
 THREE.LensFlare.prototype = new THREE.Object3D();
 THREE.LensFlare.prototype.constructor = THREE.LensFlare;
-THREE.LensFlare.prototype.supr = THREE.Object3D.prototype;
 
 
 /*

+ 0 - 1
src/lights/Light.js

@@ -13,4 +13,3 @@ THREE.Light = function ( hex ) {
 
 THREE.Light.prototype = new THREE.Object3D();
 THREE.Light.prototype.constructor = THREE.Light;
-THREE.Light.prototype.supr = THREE.Object3D.prototype;

+ 0 - 1
src/objects/Bone.js

@@ -14,7 +14,6 @@ THREE.Bone = function( belongsToSkin ) {
 
 THREE.Bone.prototype = new THREE.Object3D();
 THREE.Bone.prototype.constructor = THREE.Bone;
-THREE.Bone.prototype.supr = THREE.Object3D.prototype;
 
 
 THREE.Bone.prototype.update = function( parentSkinMatrix, forceUpdate ) {

+ 0 - 1
src/objects/LOD.js

@@ -14,7 +14,6 @@ THREE.LOD = function () {
 
 THREE.LOD.prototype = new THREE.Object3D();
 THREE.LOD.prototype.constructor = THREE.LOD;
-THREE.LOD.prototype.supr = THREE.Object3D.prototype;
 
 THREE.LOD.prototype.addLevel = function ( object3D, visibleAtDistance ) {
 

+ 0 - 1
src/objects/Mesh.js

@@ -48,7 +48,6 @@ THREE.Mesh = function ( geometry, material ) {
 
 THREE.Mesh.prototype = new THREE.Object3D();
 THREE.Mesh.prototype.constructor = THREE.Mesh;
-THREE.Mesh.prototype.supr = THREE.Object3D.prototype;
 
 
 /*