提交 210a970b 编写于 作者: M Mr.doob

Mesh: Removed dead code. See #6902.

上级 8395d84a
......@@ -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
......
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册