2
0
Эх сурвалжийг харах

Mesh: Removed dead code. See #6902.

Mr.doob 9 жил өмнө
parent
commit
210a970ba6

+ 1 - 17
docs/api/objects/Mesh.html

@@ -43,7 +43,7 @@
 		<h3>[property:Material material]</h3>
 
 		<div>An instance of [page:Material], defining the object's appearance. Default is a [page:MeshBasicMaterial] with wireframe mode enabled and randomised colour.</div>
-		
+
 		<h3>[property:Array morphTargetInfluences]</h3>
 
 		<div>
@@ -58,25 +58,9 @@
 		Undefined by default, but rebuilt [page:Mesh.updateMorphTargets updateMorphTargets].
 		</div>
 
-		<h3>[property:Integer morphTargetBase]</h3>
-
-		<div>
-		Specify the index of the morph that should be used as the base morph. Replaces the positions.
-		Undefined by default, but reset to -1 (non set) by [page:Mesh.updateMorphTargets updateMorphTargets].
-		</div>
-
 
 		<h2>Methods</h2>
 
-		<h3>[method:Integer getMorphTargetIndexByName]( [page:String name] )</h3>
-		<div>
-		name — a morph target name<br />
-		</div>
-		<div>
-		Returns the index of a morph target defined by name.
-		</div>
-
-
 		<h3>[method:null updateMorphTargets]()</h3>
 		<div>
 		Updates the morphtargets to have no influence on the object. Resets the

+ 0 - 15
src/objects/Mesh.js

@@ -58,7 +58,6 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		if ( this.geometry.morphTargets !== undefined && this.geometry.morphTargets.length > 0 ) {
 
-			this.morphTargetBase = - 1;
 			this.morphTargetInfluences = [];
 			this.morphTargetDictionary = {};
 
@@ -73,20 +72,6 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	},
 
-	getMorphTargetIndexByName: function ( name ) {
-
-		if ( this.morphTargetDictionary[ name ] !== undefined ) {
-
-			return this.morphTargetDictionary[ name ];
-
-		}
-
-		console.warn( 'THREE.Mesh.getMorphTargetIndexByName: morph target ' + name + ' does not exist. Returning 0.' );
-
-		return 0;
-
-	},
-
 	raycast: ( function () {
 
 		var inverseMatrix = new Matrix4();