|
@@ -15,7 +15,7 @@ THREE.Mesh = function ( geometry, material ) {
|
|
this.material = material !== undefined ? material : new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff } );
|
|
this.material = material !== undefined ? material : new THREE.MeshBasicMaterial( { color: Math.random() * 0xffffff } );
|
|
|
|
|
|
this.drawMode = THREE.TrianglesDrawMode;
|
|
this.drawMode = THREE.TrianglesDrawMode;
|
|
-
|
|
|
|
|
|
+
|
|
this.updateMorphTargets();
|
|
this.updateMorphTargets();
|
|
|
|
|
|
};
|
|
};
|
|
@@ -23,9 +23,9 @@ THREE.Mesh = function ( geometry, material ) {
|
|
THREE.Mesh.prototype = Object.create( THREE.Object3D.prototype );
|
|
THREE.Mesh.prototype = Object.create( THREE.Object3D.prototype );
|
|
THREE.Mesh.prototype.constructor = THREE.Mesh;
|
|
THREE.Mesh.prototype.constructor = THREE.Mesh;
|
|
|
|
|
|
-THREE.Mesh.prototype.setDrawMode = function ( mode ) {
|
|
|
|
|
|
+THREE.Mesh.prototype.setDrawMode = function ( value ) {
|
|
|
|
|
|
- this.drawMode = mode;
|
|
|
|
|
|
+ this.drawMode = value;
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|